/* Buddy Guild — coming-soon page ("Frosted" palette).
   Same layout, fonts and motion as Mate Maker; only the theme
   variables below are Buddy Guild's own. */
@font-face {
  font-family: Fraunces; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/fraunces.woff2) format("woff2");
}
@font-face {
  font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/inter.woff2) format("woff2");
}

/* ---------- Theme (Buddy Guild) ---------- */
:root {
  --slate: #29353C;      /* main text, primary buttons, dark band */
  --slate-blue: #44576D; /* secondary text, eyebrows, icons, links */
  --grey-blue: #768A96;  /* decoration only, never text */
  --sky: #AAC7D8;        /* accents, borders, light button */
  --frost: #DFEBF6;      /* section surfaces */
  --mist: #E6E6E6;       /* orb highlight */
  --page: #F3F7FB;       /* page background */
  --card: #CCDEEC;       /* promise cards */
  --white: #FFFFFF;
  --err: #8A2B2B;
  --serif: Fraunces, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--slate);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--slate-blue); }
a:hover { color: var(--slate); }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--slate-blue); outline-offset: 3px; border-radius: 6px; }
.band :focus-visible { outline-color: var(--sky); }

.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-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--slate); color: var(--white); padding: 12px 18px;
  border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--white); }

.eyebrow {
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--slate-blue); font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 22px; border: 0; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(41,53,60,.25); }
.btn-dark { background: var(--slate); color: var(--white); }
.btn-dark:hover { color: var(--white); background: #1F292F; }
.btn-sky { background: var(--sky); color: var(--slate); font-size: 17px; min-height: 52px; padding: 0 30px; }
.btn-sky:hover { color: var(--slate); background: #BDD5E3; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }

/* ---------- Hero ---------- */
/* overflow: clip (not just hidden) so anchor jumps and focus can never
   scroll the hero box internally and slide the veil off the tiles. */
.hero-wrap { position: relative; overflow: hidden; overflow: clip; }

.tile-wall {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  opacity: .9; transform: rotate(-4deg) scale(1.12);
}
.tile-row {
  display: flex; gap: 18px; width: max-content;
  animation: bg-scroll 95s linear infinite;
}
.tile-row.rev { animation-direction: reverse; animation-duration: 115s; }
@keyframes bg-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.tile {
  position: relative; flex: none; width: 230px; height: 290px;
  border-radius: 20px; overflow: hidden; isolation: isolate;
}
/* Photos tinted to the Frosted palette: drained of their warm color,
   then washed in sky-to-slate blue, with a darker foot for the label. */
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(1.02);
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  /* "color" keeps each photo's light and shade but takes these hues
     (soft sky to slate blue, a touch richer than the palette swatches). */
  background: linear-gradient(160deg, #94B9D0 0%, #4A6580 100%);
  mix-blend-mode: color;
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(41,53,60,0) 55%, rgba(41,53,60,.7) 100%);
}
.tile-label {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--white);
}

/* Frosted veil. Slightly stronger than the mockup so the slate-blue
   statement text keeps 4.5:1 contrast even over the darkest tiles. */
.veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(243,247,251,.86) 0%,
    rgba(223,235,246,.86) 45%,
    rgba(243,247,251,.92) 82%,
    var(--page) 100%);
}

.hero-content { position: relative; z-index: 1; }

.site-header {
  max-width: 1200px; margin: 0 auto; padding: 18px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  color: var(--slate); text-decoration: none;
}
.logo:hover { color: var(--slate); }
.logo-mark { position: relative; width: 40px; height: 28px; flex: none; }
.logo-mark span { position: absolute; width: 20px; height: 20px; border-radius: 50%; }
.logo-mark span:nth-child(1) { left: 0; top: 4px; background: var(--grey-blue); }
.logo-mark span:nth-child(2) { left: 10px; top: 0; background: var(--sky); opacity: .9; }
.logo-mark span:nth-child(3) { left: 20px; top: 6px; background: var(--slate-blue); opacity: .85; }
.logo-word { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .2px; }

.hero {
  max-width: 1200px; margin: 0 auto; padding: 40px var(--gutter) 88px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
  scroll-margin-top: 0;
}
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, min(6vw, 9vh), 76px); line-height: 1.04; color: var(--slate);
}
.statement { font-size: 19px; line-height: 1.6; color: var(--slate-blue); max-width: 540px; }

/* ---------- Waitlist ---------- */
.join { margin-top: 4px; max-width: 520px; scroll-margin-top: 120px; }
.wl-pill {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 8px;
  border-radius: 999px; background: rgba(255,255,255,.75);
  border: 1px solid var(--sky);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.wl-pill:focus-within { border-color: var(--slate-blue); }
.wl-pill input {
  flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 18px;
  font: inherit; font-size: 16px; color: var(--slate);
  border: 0; border-radius: 999px; background: transparent;
}
.wl-pill input::placeholder { color: #5E6F7E; }
.wl-pill input:focus-visible { outline-offset: 0; border-radius: 999px; }
.wl-pill input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--err); }
.wl-pill .btn { min-height: 48px; padding: 0 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-status { margin: 10px 0 0 18px; font-size: 14px; font-weight: 500; color: var(--slate-blue); }
.wl-status:empty { display: none; }
.wl-status.err { color: var(--err); }
.wl-note { margin: 10px 0 0 18px; font-size: 14px; color: var(--slate-blue); }

.wl-done {
  padding: 18px 22px; border-radius: 20px; background: var(--white);
  border: 1px solid var(--sky); display: flex; flex-direction: column; gap: 4px;
}
.wl-done[hidden] { display: none; }
.wl-done:focus { outline: none; }
.wl-done-title { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--slate); }
.wl-done-sub { font-size: 15px; color: var(--slate-blue); }

/* ---------- Orb card ---------- */
.hero-side { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }
.orb-card {
  margin: 0; width: 100%; max-width: 460px; padding: 36px 32px;
  border-radius: 28px; background: rgba(255,255,255,.7);
  border: 1px solid rgba(170,199,216,.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
/* The 300×200 mockup stage, in percentages so it shrinks on phones. */
.orb-stage { position: relative; width: 100%; max-width: 300px; aspect-ratio: 3 / 2; }
.link { position: absolute; background: var(--sky); }
.link-h { left: 24%; top: 35%; width: 52%; height: 2px; }
.link-v { left: 49.33%; top: 35%; width: 2px; height: 35%; }
.orb { position: absolute; border-radius: 50%; aspect-ratio: 1; }
.orb-a {
  left: 4.67%; top: 10%; width: 34.67%;
  background: radial-gradient(circle at 32% 28%, #FFFFFF 0%, var(--frost) 30%, var(--sky) 65%, var(--grey-blue) 100%);
  box-shadow: 0 0 44px rgba(170,199,216,.75), inset -10px -14px 24px rgba(41,53,60,.18);
  animation: float-a 7s ease-in-out infinite;
}
.orb-b {
  left: 60.67%; top: 5%; width: 34.67%;
  background: radial-gradient(circle at 32% 28%, #F4F8FB 0%, var(--sky) 32%, var(--slate-blue) 80%, var(--slate) 100%);
  box-shadow: 0 0 44px rgba(68,87,109,.4), inset -10px -14px 24px rgba(41,53,60,.25);
  animation: float-b 8s ease-in-out infinite;
}
.orb-c {
  left: 33.33%; top: 52%; width: 32%;
  background: radial-gradient(circle at 32% 28%, #FFFFFF 0%, var(--mist) 30%, var(--grey-blue) 75%, var(--slate-blue) 100%);
  box-shadow: 0 0 40px rgba(118,138,150,.5), inset -10px -14px 24px rgba(41,53,60,.2);
  animation: float-c 9s ease-in-out infinite;
}
@keyframes float-a { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes float-b { 0%,100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }
@keyframes float-c { 0%,100% { transform: translateY(6px); } 50% { transform: translateY(-10px); } }

.orb-card figcaption { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.orb-title { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--slate); }
.orb-sub { font-size: 15px; line-height: 1.55; color: var(--slate-blue); }

/* ---------- Why Buddy Guild ---------- */
.inner { max-width: 1200px; margin: 0 auto; }
.why { background: var(--frost); padding: 96px var(--gutter); }
.why .inner { display: flex; flex-direction: column; gap: 48px; }
.why-intro { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.why h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 4vw, 50px); line-height: 1.12; color: var(--slate);
}
.why-intro > p:last-child { font-size: 18px; line-height: 1.7; color: var(--slate-blue); }
.promises {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px;
}
.promise {
  padding: 30px; border-radius: 24px; background: var(--card); border: 1px solid var(--sky);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.promise:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(41,53,60,.14); }
.promise .icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--page);
  display: flex; align-items: center; justify-content: center; color: var(--slate-blue);
}
.promise h3 { font-size: 20px; font-weight: 600; color: var(--slate); }
.promise p { font-size: 16px; line-height: 1.6; color: var(--slate-blue); }

/* ---------- Closing band ---------- */
.band { background: var(--slate); padding: 88px var(--gutter); }
.band .inner {
  max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
}
.band h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(28px, 4vw, 46px); line-height: 1.15; color: var(--page);
}
.band p { font-size: 18px; line-height: 1.6; color: var(--frost); }

/* ---------- Footer ---------- */
.site-footer {
  max-width: 1200px; margin: 0 auto; padding: 36px var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 14px; color: var(--slate-blue);
}
.footer-word { font-family: var(--serif); font-size: 18px; color: var(--slate); }
.copyright { width: 100%; }
/* Sister-site invite (same structure on Mate Maker, each in its own colors) */
.sister-invite {
  width: 100%; padding-bottom: 20px; border-bottom: 1px solid var(--sky);
  font-size: 15px; line-height: 1.6; color: var(--slate-blue);
}
.sister-invite a {
  display: inline-flex; align-items: center; min-height: 44px; margin-left: 4px;
  font-weight: 600; color: var(--slate); text-underline-offset: 3px;
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 24px; padding-bottom: 64px; gap: 40px; }
  .hero-copy, .hero-side { flex-basis: 100%; }
  .statement { font-size: 17px; }
  .site-header { flex-wrap: nowrap; gap: 12px; }
  .logo { gap: 10px; }
  .logo-word { font-size: 20px; white-space: nowrap; }
  .site-header .btn { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
  /* The pill becomes a rounded box so the wrapped button still looks right. */
  .wl-pill { border-radius: 24px; }
  .wl-pill .btn { flex: 1 1 100%; }
  .wl-status, .wl-note { margin-left: 8px; }
  .orb-card { padding: 28px 20px; }
  .why { padding-top: 72px; padding-bottom: 72px; }
  .promise { padding: 24px; }
  .band { padding-top: 72px; padding-bottom: 72px; }
}

/* Very small phones: let the header button drop under the logo. */
@media (max-width: 359px) {
  .site-header { flex-wrap: wrap; }
}

/* ---------- Reduced motion: stop the scrolling and floating ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile-row, .orb { animation: none; }
  .btn, .promise { transition: none; }
  .btn:hover, .promise:hover { transform: none; }
}

/* ---------- Privacy / legal page ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 32px var(--gutter) 64px; display: flex; flex-direction: column; gap: 20px; }
.legal h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin-bottom: 10px; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: var(--slate-blue); }
.legal strong { color: var(--slate); font-weight: 600; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.legal section { padding-top: 12px; border-top: 1px solid var(--sky); }
.legal-updated { font-size: 14px !important; }
.legal-lede { font-size: 19px !important; color: var(--slate) !important; }
.legal-back { padding-top: 12px; }
.legal a, .footer-links a, .wl-note a { text-underline-offset: 3px; }
.footer-links a { display: inline-block; padding: 12px 2px; } /* 44px tap area */
