/*
 * Stack MAX placeholder homepage. Tokens, wordmark recipe and logo mark are taken from the admin
 * (platform/apps/customer/customer-admin: globals.css, components/brand): cool grey canvas, burgundy
 * accent, Inter. Static, no scripts, no external requests: the font is bundled next to this file.
 */

/* Inter, latin subset, variable (SIL Open Font License, see fonts/OFL.txt) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #f4f4f1;
  --ink: #1b1a15;
  --muted: #686862;
  --line: #e4e4dd;
  --accent: #7a1f2b;
  --accent-strong: #5e1721;
  --accent-on: #ffffff;
  --focus-ring: #2768d7;
  --radius-control: 8px;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13120f;
    --ink: #f2efe8;
    --muted: #b5b1a7;
    --line: #37342e;
    --accent: #ff9aae;
    --accent-strong: #ffc0ca;
    --accent-on: #171612;
    --focus-ring: #78b4ff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

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

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
  font-weight: 400;
}

.mark {
  display: block;
  flex: 0 0 auto;
  width: clamp(3.25rem, 9vw, 4.75rem);
  height: clamp(3.25rem, 9vw, 4.75rem);
}

.l1,
.l2 {
  fill: var(--ink);
}

.l3 {
  fill: var(--accent);
}

.wm {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32em;
  font-size: clamp(2.6rem, 8vw, 4.25rem);
  letter-spacing: -0.015em;
  line-height: 1;
  white-space: nowrap;
}

.wm-stack {
  font-weight: 500;
}

.wm-max {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.012em;
}

.claim {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  text-wrap: balance;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  margin-top: 0.5rem;
  padding: 0 2rem;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--accent-on);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--accent-strong);
}

.button:active {
  transform: translateY(1px);
}

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

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer nav {
  display: flex;
  gap: 1.25rem;
}

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

.footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 30rem) {
  .lockup {
    flex-direction: column;
    gap: 0.9rem;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }
}

/* ---- Motion: the three layers settle in, top step last ------------------- */

@media (prefers-reduced-motion: no-preference) {
  .mark rect {
    animation: settle 0.6s cubic-bezier(0.3, 0.7, 0.3, 1.2) backwards;
  }

  .mark .l2 {
    animation-delay: 0.1s;
  }

  .mark .l3 {
    animation-delay: 0.2s;
  }

  .wm,
  .claim,
  .button {
    animation: rise 0.5s ease-out 0.25s backwards;
  }

  @keyframes settle {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(4px);
    }
  }
}
