/* ── Type ─────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Labil Grotesk";
  src:
    url("../fonts/labil-grotesk/regular.woff2") format("woff2"),
    url("../fonts/labil-grotesk/regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Labil Grotesk";
  src:
    url("../fonts/labil-grotesk/medium.woff2") format("woff2"),
    url("../fonts/labil-grotesk/medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── Brand tokens (from apps/nuxt/app/assets/css/main.css @theme) ─────── */

:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-charcoal: #313234;
  --color-grey: #f5f5f5;
  --color-mint: #75f09d;
  --color-mint-light: #c8ffda;
  --color-blue: #79ddda;
  --color-pink: #f69ac6;
  --color-yellow: #ffe400;
  --color-yellow-light: #fff500;

  --gutter: clamp(18px, 5vw, 56px);
}

/* ── Reset ────────────────────────────────────────────────────────────── */

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

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-mint);
  color: var(--color-black);
  font-family: "Labil Grotesk", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* ── Page shell ───────────────────────────────────────────────────────── */

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.blob {
  position: absolute;
  aspect-ratio: 1;
  pointer-events: none;
}

.blob--one {
  top: -18%;
  left: -10%;
  width: 62%;
  max-width: 820px;
  background: radial-gradient(
    circle at 50% 50%,
    var(--color-mint-light) 0%,
    rgba(200, 255, 218, 0) 70%
  );
  animation: drift 18s ease-in-out infinite;
}

.blob--two {
  right: -14%;
  bottom: -26%;
  width: 68%;
  max-width: 900px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0) 68%
  );
  animation: drift 24s ease-in-out infinite reverse;
}

/* ── Header ───────────────────────────────────────────────────────────── */

.header {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(28px, 5vw, 40px) var(--gutter) 0;
}

.lockup__mark {
  display: block;
  width: auto;
  height: 64px;
  color: var(--color-grey);
}

@media (min-width: 768px) {
  .lockup__mark {
    height: 72px;
  }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(48px, 9vw, 110px);

  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin: 0 0 clamp(18px, 3vw, 28px);
  padding: 9px 18px 9px 14px;
  border-radius: 999px;

  background-color: var(--color-white);
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.05);

  font-size: 14px;
  font-weight: 500;
  line-height: 1.2em;
}

.pill__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;

  background-color: var(--color-pink);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.hero__title {
  max-width: 100%;
  margin: 0;

  font-size: clamp(40px, 7vw, 80px);
  font-weight: 500;
  /* The app's headings use 0.9em, but that is sized for a single-line title.
     Over two lines the marker below "screen break" collides with the descenders
     of the line above, so this opens the leading just enough to clear them. */
  line-height: 1.06em;
  letter-spacing: -0.03em;
  font-feature-settings:
    "salt" on,
    "ss02" on;
}

/* Hand-drawn highlighter behind "screen break", matching the "Why wait?" title
   on the homepage: /images/blue-text-highlight.svg sat behind the word, nudged
   below centre and rotated slightly. */
.highlight {
  position: relative;
  display: inline-block;
}

.highlight__mark {
  position: absolute;
  top: 56%;
  left: 50%;
  z-index: 0;

  width: 106%;
  height: 1.0em;

  background: url("../images/blue-text-highlight.svg") center / 100% 100%
    no-repeat;
  transform: translate(-50%, -50%) rotate(-0.81deg);
  pointer-events: none;
}

.highlight__text {
  position: relative;
  z-index: 1;
}

.hero__body {
  max-width: 46ch;
  margin: clamp(18px, 2.5vw, 26px) 0 0;

  color: var(--color-charcoal);

  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5em;
}

/* ── Actions ──────────────────────────────────────────────────────────── */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: center;

  margin-top: clamp(24px, 3.5vw, 36px);
}

.btn-contact,
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  text-decoration: none;

  transform: translateZ(0);
  transition:
    background-color 200ms,
    color 200ms,
    transform 200ms;
}

.btn-contact:active,
.social:active {
  transform: scale(0.95);
  transition-duration: 100ms;
}

.btn-contact {
  height: 48px;
  padding: 0 26px;

  background-color: var(--color-yellow-light);
  color: var(--color-black);

  font-size: 18px;
  font-weight: 500;
  line-height: 1em;
}

.btn-contact:hover {
  background-color: var(--color-yellow);
}

.socials {
  display: flex;
  gap: 10px;
}

.social {
  width: 48px;
  height: 48px;

  background-color: var(--color-black);
  color: var(--color-white);
}

.social:hover {
  background-color: var(--color-charcoal);
}

.social svg {
  display: block;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;

  padding: 18px var(--gutter);
  border-top: 1px solid rgba(0, 0, 0, 0.14);

  color: var(--color-charcoal);

  font-size: 14px;
  line-height: 1.2em;
}

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

.footer a:hover {
  color: var(--color-black);
}

/* ── Motion ───────────────────────────────────────────────────────────── */

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(2%, -2%) scale(1.04);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .pill__dot {
    animation: none;
  }

  .btn-contact,
  .social,
  .footer a {
    transition: none;
  }
}
