/* Grinzu teaser page. Same palette and type as the app (apps/web/src/app/globals.css). */

@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --lime: #d4f77d;
  --ink: #171916;
  --cream: #f4f3ea;

  --background: #faf9f2;
  --foreground: #171916;
  --card: #ffffff;
  --muted: #eeede3;
  --muted-foreground: #5c5e55;
  --accent: #ecf9cf;
  --border: #e2e1d6;
  --input: #d6d5c9;
  --ring: #7fa82a;
  --danger: #c2410c;
  --glow: rgb(212 247 125 / 55%);
  --header-glass: rgb(250 249 242 / 60%);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Outfit", var(--font-sans);
  color-scheme: light;
}

.dark {
  --background: #141613;
  --foreground: #f4f3ea;
  --card: #1c1e1a;
  --muted: #262823;
  --muted-foreground: #a4a598;
  --accent: #2b3418;
  --border: rgb(244 243 234 / 10%);
  --input: rgb(244 243 234 / 16%);
  --ring: #d4f77d;
  --danger: #fb923c;
  --glow: rgb(212 247 125 / 16%);
  --header-glass: rgb(20 22 19 / 55%);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(5rem + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

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

/* Elements toggled with the hidden attribute stay hidden whatever their display rule. */
[hidden] {
  /* biome-ignore lint/complexity/noImportantStyles: a hidden element must stay hidden */
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
}
.skip:focus {
  top: 1rem;
}

.dark .only-light,
:root:not(.dark) .only-dark {
  display: none;
}

.muted {
  color: var(--muted-foreground);
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Background glow: big blurred lime orbs drifting slowly ---- */
.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glow i {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  filter: blur(40px);
}
.glow i:nth-child(1) {
  top: -18vmax;
  left: -12vmax;
  --x: 8vmax;
  --y: 6vmax;
  --d: 22s;
}
.glow i:nth-child(2) {
  right: -16vmax;
  top: 20vh;
  --x: -10vmax;
  --y: 8vmax;
  --d: 28s;
}
.glow i:nth-child(3) {
  left: 20vw;
  bottom: -24vmax;
  --x: 6vmax;
  --y: -8vmax;
  --d: 34s;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  /* An opaque fallback keeps the logo readable without backdrop-filter support. */
  background: var(--background);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: var(--header-glass);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--background);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: calc(0.875rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.875rem;
}
.logo img {
  width: 8.5rem;
  height: auto;
}
@media (max-width: 359px) {
  .site-header .logo img {
    width: 7rem;
  }
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 70%, transparent);
  color: var(--foreground);
  cursor: pointer;
}
.icon-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.icon-btn:hover {
  background: var(--muted);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.15s,
    filter 0.15s;
}
.btn:hover {
  filter: brightness(0.95);
}
.btn:active {
  transform: translateY(1px);
}
.btn-big {
  height: 3.25rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}
.btn-small {
  height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.9rem;
}
.btn-ink-outline {
  height: 2.75rem;
  padding: 0 1.25rem;
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn-ink-outline:hover {
  filter: none;
  border-color: var(--ring);
}
.btn[disabled] {
  cursor: progress;
  opacity: 0.85;
}
.spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
.btn[disabled] .spinner {
  display: inline-block;
}

/* ---- Hero ---- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 4rem;
}

.mascot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}
.hint {
  position: relative;
  min-height: 2.6rem;
  max-width: min(20rem, 85vw);
  margin-bottom: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.08);
}
.hint::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: var(--card);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: translateX(-50%) rotate(45deg);
}
.hint.new {
  animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.blob-btn {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 40%;
  -webkit-tap-highlight-color: transparent;
}
.mascot-blob {
  width: clamp(7.5rem, 22vw, 10rem);
  height: auto;
  overflow: visible;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.blob-btn:hover .mascot-blob {
  transform: rotate(-4deg) scale(1.03);
}
.blob-btn.poked .mascot-blob {
  animation: squish 0.45s ease-out;
}
.mascot-body {
  fill: var(--lime);
}
.eye,
.mascot-mouth {
  fill: var(--ink);
}
.mascot-eyes {
  transition: transform 0.12s ease-out;
}
.eye {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.08s;
}
.blinking .eye {
  transform: scaleY(0.12);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--lime) 40%, transparent);
  background: var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--lime);
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.04;
  text-wrap: balance;
}
.line2 {
  display: block;
}
.blurry {
  display: inline-block;
  padding: 0 0.6rem 0.2rem;
  border: 0;
  border-radius: 1rem;
  background: var(--lime);
  color: var(--ink);
  font: inherit;
  letter-spacing: inherit;
  transform: rotate(-2deg);
  filter: blur(7px);
  cursor: pointer;
  transition:
    filter 0.5s ease,
    transform 0.3s ease;
}
.blurry:hover,
.blurry:focus-visible,
.blurry.peek {
  filter: blur(0);
  transform: rotate(2deg) scale(1.03);
}
.lead {
  max-width: 30rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* ---- Waitlist form ---- */
.join {
  width: 100%;
  max-width: 32rem;
  scroll-margin-top: 1rem;
  text-align: left;
}
.join-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 560px) {
  .field-row {
    flex-direction: row;
    padding: 0.375rem;
    border: 1px solid var(--input);
    border-radius: 999px;
    background: var(--card);
  }
  .field-row:focus-within {
    border-color: var(--ring);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 30%, transparent);
  }
  .field-row input[type="email"] {
    flex: 1;
    height: auto;
    border: 0;
    background: transparent;
  }
  .field-row:has(input[aria-invalid="true"]) {
    border-color: var(--danger);
  }
  .field-row input[type="email"]:focus-visible {
    outline: none;
  }
  .field-row .btn-big {
    height: 2.75rem;
  }
}
input[type="email"] {
  flex: 0 0 auto;
  min-width: 0;
  height: 3.25rem;
  padding: 0 1.25rem;
  border: 1px solid var(--input);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  font: inherit;
  font-size: 1rem;
}
input[type="email"]::placeholder {
  color: var(--muted-foreground);
}
input[aria-invalid="true"] {
  border-color: var(--danger);
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  width: fit-content;
  padding-left: 0.25rem;
}
.check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--lime);
}
.captcha:empty {
  display: none;
}
.error {
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 500;
}
.error:empty {
  display: none;
}
.note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.note a,
.doc a {
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---- After joining ---- */
.joined {
  position: relative;
  padding: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--lime) 45%, transparent);
  border-radius: 1.5rem;
  background: var(--accent);
  outline: none;
  overflow-wrap: anywhere;
}
.joined-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
}
.joined-text {
  margin-top: 0.25rem;
}
.secret {
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px dashed color-mix(in srgb, var(--foreground) 25%, transparent);
  border-radius: 1rem;
}
.secret-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.secret-text {
  margin-top: 0.35rem;
}
.share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.share-btn:hover {
  border-color: var(--ring);
}
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.confetti i {
  position: absolute;
  top: 0;
  width: 0.5rem;
  height: 0.8rem;
  border-radius: 2px;
  opacity: 0;
  animation: confetti 1.8s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
  animation-delay: var(--delay, 0s);
}

/* ---- What it isn't ---- */
.teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 5rem;
  text-align: center;
}
.teaser-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.teaser h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}
.nots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: 56rem;
  margin: 1.75rem 0 1.25rem;
  padding: 0;
  list-style: none;
  text-align: left;
}
.not-sticker {
  --sticker-tilt: -3deg;
  padding: 1.25rem;
  border: 1.5px solid var(--ink);
  border-radius: 1.25rem;
  background: #e1e6ff;
  color: var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
  transform: rotate(var(--sticker-tilt));
}
.not-likes {
  --sticker-tilt: 2deg;
  background: #f8d8e5;
}
.not-dating {
  --sticker-tilt: -1.5deg;
  background: var(--lime);
}
.sticker-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.sticker-icon {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sticker-stamp {
  padding: 0.15rem 0.55rem;
  border: 2px solid currentColor;
  border-radius: 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(9deg);
}
.not-sticker s {
  display: block;
  margin: 1.25rem 0 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-decoration-thickness: 0.075em;
  text-decoration-color: rgb(23 25 22 / 55%);
}
.sticker-note {
  display: block;
  font-size: 0.75rem;
}
.teaser-reveal {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  margin: 0.75rem 0;
}
.teaser-question {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}
.teaser-secret {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
@media (max-width: 639px) {
  .nots {
    grid-template-columns: minmax(0, 1fr);
    max-width: 22rem;
    gap: 1.1rem;
    padding: 0 0.5rem;
    margin-top: 1.25rem;
  }
  .not-sticker {
    padding: 1rem 1.2rem;
  }
  .not-sticker s {
    margin: 0.55rem 0 0.35rem;
    font-size: 1.65rem;
  }
  .not-sticker br {
    display: none;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .not-sticker {
    transition:
      transform 180ms ease,
      box-shadow 180ms ease;
  }
  .not-sticker:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 6px 8px 0 var(--ink);
  }
}
.redacted {
  cursor: help;
  position: relative;
  display: inline-block;
  padding: 0 0.3em;
  border-radius: 0.4rem;
  background: var(--foreground);
  color: transparent;
  user-select: none;
}
.redacted::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 8px,
    color-mix(in srgb, var(--background) 18%, transparent) 8px 10px
  );
}

/* ---- Footer ---- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.footer-title {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 359px) {
  .social {
    gap: 0.35rem;
  }
}
.social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-foreground);
}
.social a[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
}
.social a[href]:hover {
  color: var(--foreground);
  border-color: var(--ring);
}
.social svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--foreground);
  text-decoration: underline;
}

/* ---- Privacy and 404 pages ---- */
.doc {
  max-width: 44rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
}
.doc h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
}
.doc h2 {
  margin-top: 2.25rem;
  font-size: 1.4rem;
}
.doc p,
.doc ul {
  margin-top: 0.75rem;
}
.doc li + li {
  margin-top: 0.35rem;
}
.notfound-blob {
  height: auto;
}

/* ---- Motion ---- */
@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(var(--x), var(--y)) scale(1.12);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes squish {
  0% {
    transform: scale(1, 1);
  }
  30% {
    transform: scale(1.12, 0.88);
  }
  60% {
    transform: scale(0.94, 1.06);
  }
  100% {
    transform: scale(1, 1);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 70%, transparent);
  }
  100% {
    box-shadow: 0 0 0 10px transparent;
  }
}
@keyframes wiggle {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) scale(1, 1);
  }
  40% {
    transform: translateY(-12px) scale(0.97, 1.03);
  }
  60% {
    transform: translateY(0) scale(1.04, 0.96);
  }
}
@keyframes confetti {
  from {
    opacity: 1;
    transform: translate3d(0, -20px, 0) rotate(0deg);
  }
  to {
    opacity: 0;
    transform: translate3d(var(--drift, 0), 220px, 0) rotate(var(--spin, 360deg));
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .glow i {
    animation: drift var(--d) ease-in-out infinite;
  }
  .blob-btn {
    animation: float 6s ease-in-out infinite;
  }
  .dot {
    animation: pulse 1.6s ease-out infinite;
  }
  .wiggle:hover {
    animation: wiggle 0.4s ease-in-out 2;
  }
  .bounce {
    animation: bounce 2.4s ease-in-out infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .confetti {
    display: none;
  }
  .blurry,
  .mascot-eyes,
  .eye {
    transition: none;
  }
}
