/* ==========================================================================
   Unsolicited Apps — design-system tokens applied for consistency
   (typography, color, spacing, radius, motion). Content/copy unchanged.
   ========================================================================== */

@font-face {
  font-family: "Saans";
  src:
    url("fonts/Saans-VF.ttf") format("truetype-variations"),
    url("fonts/Saans-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

:root {
  /* Typography */
  --font-sans: "Saans", Arial, Helvetica, sans-serif;
  --font-weight-default: 300;

  /* Core colors */
  --color-ink: #141414;
  --color-surface-dark: #1c1c1c;
  --color-white: #ffffff;
  --color-paper: #eaeaea;
  --color-paper-soft: #f5f0f0;
  --color-paper-light: #f7f7f7;
  --color-stone: #cccbc8;
  --grid-line: rgba(20, 20, 20, 0.028);

  /* Alpha colors */
  --color-ink-40: rgba(20, 20, 20, 0.40);
  --color-ink-06: rgba(20, 20, 20, 0.06);
  --color-white-20: rgba(255, 255, 255, 0.20);
  --color-white-12: rgba(255, 255, 255, 0.12);
  --color-white-08: rgba(255, 255, 255, 0.08);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-2-5: 10px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-25: 100px;
  --space-30: 120px;

  /* Shape */
  --radius-sm: 6px;
  --radius-md: 26px;
  --radius-pill: 60px;
  --border-ink-soft: 1px solid rgba(20, 20, 20, 0.20);

  /* Layout */
  --content-max: 1240px;
  --gutter-desktop: 32px;
  --gutter-tablet: 40px;
  --gutter-phone: 20px;

  /* Legacy aliases kept so nothing silently falls back to defaults */
  --bg-hero: var(--color-paper);
  --bg-page: var(--color-paper);
  --card-bg: var(--color-white);
  --ink: var(--color-ink);
  --ink-dim: var(--color-ink-40);
  --line: var(--color-stone);
  --line-soft: var(--color-ink-06);
  --max-width: var(--content-max);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-default);
  background-color: var(--color-paper);
  color: var(--color-ink);
  line-height: 1.5;
}

/* -- Top region: grid backdrop lives only here, fading out at the bottom ------- */

.top-region {
  position: relative;
}

.top-region::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  z-index: 0;
}

.top-region > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--gutter-desktop);
}

/* -- Top nav ----------------------------------------------------------------- */

.topbar {
  background: transparent;
  padding: var(--space-6) 0;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 19px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

/* -- Buttons: pill recipe from the design system ------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2-5);
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font: 300 14px/22.4px var(--font-sans);
  white-space: nowrap;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
  opacity: 0.8;
}

.btn-dark {
  background: var(--color-ink);
  color: var(--color-paper);
  border: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border: var(--border-ink-soft);
}

/* -- Hero ---------------------------------------------------------------------- */

.hero {
  background: transparent;
  padding: var(--space-25) 0 var(--space-25);
  text-align: center;
}

.hero .wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 54px;
  line-height: 60px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  white-space: normal;
}

.hero h1 .br-mobile {
  display: none;
}

.hero p {
  margin: var(--space-8) auto 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 25.6px;
  font-weight: 300;
  color: var(--color-ink-40);
}

.hero p.hero-sub {
  margin-top: var(--space-4);
  max-width: 900px;
  font-size: 15px;
  line-height: 24px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-10);
}

/* -- Logo grid: editorial card recipe ------------------------------------------- */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: var(--space-12) var(--gutter-desktop);
  width: 100%;
  max-width: none;
  margin: 0;
}

.logo-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  background: var(--color-white);
  overflow: hidden;
}

.logo-cell a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.logo-cell span {
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 0.01em;
  font-weight: 300;
  color: var(--color-ink-40);
  text-align: center;
  padding: var(--space-3);
}

.logo-cell img {
  max-width: 36%;
  max-height: 16%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* -- Footer ----------------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--color-ink-06);
  padding: var(--space-1) 0 var(--space-16);
}

.footer-row {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-ink-06);
}

.footer-label {
  flex: 0 0 240px;
  font-size: 15px;
  line-height: 22.5px;
  font-weight: 300;
  color: var(--color-ink-40);
}

.footer-value {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  font-size: 15px;
  line-height: 22.5px;
  font-weight: 300;
}

.footer-value a {
  text-decoration: underline;
}

.footer-bottom {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-8) 0 0;
  min-height: 140px;
  overflow-y: hidden;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: 13px;
  line-height: 19.5px;
  font-weight: 300;
  color: var(--color-ink-40);
  max-width: 480px;
}

.footer-ghost-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  overflow: hidden;
  container-type: inline-size;
}

.footer-ghost {
  font-size: 18cqw;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  opacity: 0.08;
  line-height: 1;
  white-space: nowrap;
}

/* -- Responsive -------------------------------------------------------------------- */

@media (max-width: 1199px) {
  .wrap {
    padding: 0 var(--gutter-tablet);
  }
}

@media (max-width: 980px) {
  .hero {
    padding: var(--space-16) 0 var(--space-16);
  }

  .hero h1 {
    font-size: 39px;
    line-height: 42.9px;
  }

  .hero p.hero-sub {
    font-size: 15px;
    line-height: 23px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2-5);
    margin-top: var(--space-8);
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .logo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: var(--space-10) var(--gutter-tablet);
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2-5);
  }

  .footer-label {
    flex: none;
  }

  footer {
    padding: var(--space-1) 0 var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: var(--space-10);
    min-height: auto;
  }

  .footer-ghost-wrap {
    width: 100%;
    justify-content: flex-start;
    margin-top: var(--space-10);
  }

  .footer-ghost {
    font-size: 20cqw;
  }
}

@media (max-width: 809px) {
  .wrap {
    padding: 0 var(--gutter-phone);
  }

  .topbar {
    padding: var(--space-4) 0;
  }

  .wordmark {
    font-size: 17px;
  }

  .btn {
    min-height: 42px;
    padding: 0 18px;
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: var(--space-12) 0 var(--space-12);
  }

  .hero h1 {
    font-size: 28px;
    line-height: 33px;
  }

  .hero h1 .br-mobile {
    display: block;
  }

  .hero p.hero-sub br {
    display: none;
  }

  .logo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: var(--space-6) var(--gutter-phone);
  }

  .logo-cell img {
    max-width: 44%;
    max-height: 19%;
  }

  .footer-legal {
    font-size: 12px;
    line-height: 18px;
  }
}
