/* Stackyl — temporary landing page.
 *
 * A standalone copy of the app's look, not an import of it: this file ships to
 * a plain static host with no build step, so the tokens are duplicated here on
 * purpose. The app's originals live at
 * apps/dashboard/src/styles/tokens.css and .../features/site/SitePages.css —
 * if the palette moves there, it moves here too. This page is temporary and is
 * expected to be deleted once the real site ships.
 */

/* ---- tokens (mirrors apps/dashboard/src/styles/tokens.css) ---- */
:root {
  --bg: #08080f;
  --card: #101018;
  --ink: #f4f5fa;
  --ink-2: #9a9aa8;
  --ink-3: #61616f;
  --line: #1c1c26;

  /* The accent is a SURFACE as much as an accent: whole cards get filled with
     it and carry near-black text. */
  --lime: #fdd706;
  --lime-ink: #0a0906;
  --lime-glow: 0 10px 34px -12px rgba(253, 215, 6, 0.42);

  --r-xl: 30px;
  --r-lg: 24px;

  --gutter: 2rem;
  --shell-max: 1600px;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  position: relative;
  isolation: isolate;
  font-family: 'Inter', 'SF Pro Text', -apple-system, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- ambient background ----
   The page doesn't sit on a flat colour: warm yellow bleeds from the edges
   across a soft charcoal field, drifting slowly enough that you never catch it
   moving. Fixed, so it doesn't scroll with the content. */
body::before {
  content: '';
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(45% 40% at 82% 8%, color-mix(in srgb, var(--lime) 22%, transparent), transparent 70%),
    radial-gradient(40% 45% at 12% 92%, color-mix(in srgb, var(--lime) 13%, transparent), transparent 70%),
    radial-gradient(60% 55% at 50% 45%, color-mix(in srgb, #2a2a30 55%, transparent), transparent 75%);
  filter: blur(30px);
  animation: ambient-drift 75s ease-in-out infinite alternate;
}
@keyframes ambient-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2.5%, -2%, 0) scale(1.08);
  }
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 8px;
}
::selection {
  background: var(--lime);
  color: var(--lime-ink);
}

/* STACKYL is always bold and always capitals — a brand rule with no
   exceptions (branding/README.md). */
.brand-name {
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* ============ HERO ============
   The photograph is the backdrop, not a panel beside the words: it bleeds to
   the full viewport width and everything else stacks on top of it. */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding: 3rem var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-in {
  width: 100%;
  max-width: min(72rem, 100%);
  margin-inline: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Blurred and scaled up because blur softens the edges of the frame. */
  transform: scale(1.1);
  filter: grayscale(1) blur(5px) brightness(0.62) contrast(1.2);
}
/* A wash over the photograph: near-black on the left where the words are, a
   yellow bloom on the right, so the accent is in the picture rather than only
   on the button. */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      var(--bg) 8%,
      color-mix(in srgb, var(--bg) 88%, transparent) 40%,
      color-mix(in srgb, var(--bg) 45%, transparent) 78%
    ),
    /* Pushed further right and up than the app's, because this card is wider
       than the app's hero card and would otherwise cover the whole bloom. */
    radial-gradient(52% 62% at 96% 14%, color-mix(in srgb, var(--lime) 58%, transparent), transparent 68%);
}

/* The brand lockup above the card, on the photograph: the name arrives before
   the pitch does. */
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: 0 0 2rem;
  color: var(--lime);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}
.hero-brand svg {
  width: clamp(2.6rem, 6.6vw, 5.2rem);
  height: auto;
  flex: none;
}

/* ---- the yellow pitch card ----
   The one filled surface above the fold. Wide and shallow, so the pitch reads
   across the page rather than stacking into a tall column; the headline and
   body keep their own measures inside, so widening the card does not widen the
   lines. Everything inside inverts to the dark ink: on solid accent, the
   site's normal light text is unreadable. */
.card {
  padding: clamp(1.8rem, 3vw, 2.6rem) clamp(1.6rem, 3.4vw, 3.2rem);
  border-radius: var(--r-xl);
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 34px 90px -30px rgba(0, 0, 0, 0.75);
}
.eyebrow {
  margin: 0 0 0.9rem;
  font: 700 0.74rem/1 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime-ink);
  opacity: 0.66;
}
/* The headline is the loudest thing on the page and nothing competes with it. */
.card h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  max-width: 20ch;
  color: var(--lime-ink);
}
.sub {
  margin: 0.9rem 0 0;
  font-size: clamp(1.02rem, 1.6vw, 1.28rem);
  line-height: 1.55;
  max-width: 54ch;
  /* Slightly lifted off the yellow so the headline still leads. */
  color: color-mix(in srgb, var(--lime-ink) 78%, var(--lime));
}
.sub .brand-name {
  /* The name, said once in the body copy: full ink against the lifted text
     around it, so it lands without needing to be any larger. */
  color: var(--lime-ink);
}

/* ---- the steps ----
   An ordered list, because the order carries meaning. Numbered by CSS so
   reordering the copy renumbers the page. */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 1.7rem 0 0;
  padding: 1.3rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--lime-ink) 18%, transparent);
  display: grid;
  /* min() caps the track floor at the container width, so a narrow phone does
     not push the card past the viewport. */
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  gap: 1.5rem;
}
.steps li {
  counter-increment: step;
}
.steps b {
  display: block;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lime-ink);
}
/* The number leads the step, sized down so it counts rather than shouts. */
.steps b::before {
  content: counter(step);
  margin-right: 0.5rem;
  font-size: 0.78em;
  font-weight: 800;
  opacity: 0.45;
}
.steps span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--lime-ink) 70%, var(--lime));
}

/* ---- the notice ----
   The page asks for nothing, because there is nothing to sign up for yet.
   Saying so plainly beats a button that does not work. */
.note {
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--lime-ink);
  color: var(--lime);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.6);
}
/* A live indicator, not a bullet: on the near-black pill it needs its own glow
   to read as something happening rather than as a speck of punctuation. */
.note .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 22%, transparent);
  flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--lime) 8%, transparent);
  }
}

/* ============ FOOTER ============ */
.foot {
  max-width: min(72rem, 100%);
  margin-inline: auto;
  padding: 1.6rem var(--gutter) 2.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.foot a:hover {
  color: var(--lime);
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .note .dot {
    animation: none;
  }
}

@media (max-width: 58rem) {
  :root {
    --gutter: 1.25rem;
  }
  .hero {
    min-height: auto;
    padding-block: 3.5rem;
  }
  /* On a narrow screen the wash goes top-to-bottom: the words no longer sit on
     the left half, so a left-to-right gradient would dim the wrong edge. */
  .hero-bg::after {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent), var(--bg) 88%),
      radial-gradient(70% 50% at 70% 12%, color-mix(in srgb, var(--lime) 26%, transparent), transparent 70%);
  }
}
