/*
 * stoop.co — shared styles for the marketing site.
 *
 * Tokens mirror the design handoff (Stoop Splash / Stoop Legal Page), which in
 * turn tracks src/theme/variables.css. The site is intentionally a separate
 * codebase from the app, so these are copied rather than imported — keep them
 * in step by hand when the app's palette moves.
 */

:root {
  --bg: #fcfcfb;
  --bg-warm: #fbf4ec;
  --surface: #ffffff;
  --ink: #17140f;
  --ink-body: #332f29;
  --ink-soft: #5c574e;
  --ink-mute: #85847e;
  --rule: #e3e0d9;
  --rule-warm: #f0e2d4;
  --accent: #f5490d;
  --accent-pressed: #c33705;
  --accent-tint: #fbb49a;
  --display: 'Bricolage Grotesque', -apple-system, system-ui, sans-serif;
  --sans: -apple-system, system-ui, 'Segoe UI', sans-serif;
  --shell: 1140px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-pressed);
}

.shell {
  max-width: var(--shell);
  width: 100%;
  margin: 0 auto;
  padding-inline: 40px;
}

/* ---- masthead ------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.brand span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 29px;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-body);
  text-decoration: none;
}

.btn-dark {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  background: var(--ink);
  padding: 11px 20px;
  border-radius: var(--radius);
}

.btn-dark:hover {
  background: var(--ink-body);
}

/* ---- image slots ----------------------------------------------------
 * Real photography is still being sourced. Rather than ship visibly broken
 * boxes, an empty slot renders as warm brand-toned art built from the mark's
 * own stepped motif, so the page reads as finished. Dropping a real <img>
 * inside the slot covers it completely — no CSS change needed.
 */

.slot {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #f8ecdf 0%, #f6e3d2 55%, #fbd9c8 100%);
}

.slot::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      135deg,
      transparent 42%,
      rgba(255, 255, 255, 0.55) 42%,
      rgba(255, 255, 255, 0.55) 46%,
      transparent 46%
    ),
    linear-gradient(
      135deg,
      transparent 62%,
      rgba(245, 73, 13, 0.09) 62%,
      rgba(245, 73, 13, 0.09) 67%,
      transparent 67%
    );
  background-size: 78px 78px;
}

.slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(14, 12, 9, 0.88) 0%,
    rgba(14, 12, 9, 0.42) 45%,
    rgba(14, 12, 9, 0) 75%
  );
}

/* ---- footer --------------------------------------------------------- */

.foot {
  background: var(--ink);
  margin-top: auto;
}

.foot-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 36px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-brand span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--bg);
}

.foot-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.foot-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(252, 252, 251, 0.7);
  text-decoration: none;
}

.foot-links a:hover {
  color: #fff;
}

.foot-links .copy {
  font-size: 13px;
  color: rgba(252, 252, 251, 0.45);
}

/* ---- legal pages ----------------------------------------------------- */

.legal {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 40px 90px;
  flex: 1;
}

.legal-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--ink);
}

.legal-head .kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}

.legal-head h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.legal-head .updated {
  font-size: 14px;
  color: var(--ink-mute);
}

.legal .intro {
  margin: 0;
  padding: 26px 0 6px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-body);
  text-wrap: pretty;
}

.legal section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 26px;
}

.legal h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.015em;
}

.legal p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-body);
  text-wrap: pretty;
}

.legal ul {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.legal li {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-body);
}

.callout {
  background: #f5f3ef;
  border-radius: 4px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-body);
  text-wrap: pretty;
}

.callout strong {
  font-weight: 700;
}

@media (max-width: 720px) {
  .shell {
    padding-inline: 22px;
  }
  .legal {
    padding: 28px 22px 64px;
  }
  .brand span {
    font-size: 25px;
  }
  .nav-links {
    gap: 16px;
  }
  .foot-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .foot-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}
