/* Taski, pagina "in arrivo". Colori dal design system di taski-marketing
   (colors_and_type.css): blu #3380FF, viola #A06AFF, grigi freddi. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/plus-jakarta-sans-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: #FBFBFD;
  --text: #14161F;
  --muted: #4D5364;
  --link: #353A4A;
  --link-hover: #1E63E0;
  --glow-blue: rgb(51 128 255 / 0.16);
  --glow-purple: rgb(160 106 255 / 0.14);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0B12;
    --text: #ECEEF4;
    --muted: #9AA0B4;
    --link: #C0C5D4;
    --link-hover: #7AABFF;
    --glow-blue: rgb(51 128 255 / 0.22);
    --glow-purple: rgb(160 106 255 / 0.20);
  }
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  background-color: var(--bg);
  background-image:
    radial-gradient(60vmax 45vmax at 12% 8%, var(--glow-blue), transparent 70%),
    radial-gradient(55vmax 45vmax at 92% 96%, var(--glow-purple), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 48px 24px;
}

/* Icona dell'app: la forma arrotondata (squircle come su iOS) è già nell'immagine,
   con lo sfondo trasparente; l'ombra segue la forma. */
.app-icon {
  display: block;
  width: clamp(104px, 22vw, 144px);
  height: auto;
  filter: drop-shadow(0 14px 24px rgb(46 42 110 / 0.35)) drop-shadow(0 2px 4px rgb(46 42 110 / 0.18));
}

.headline {
  margin: 32px 0 0;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

.sub {
  margin: 14px 0 0;
  max-width: 42ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  color: var(--muted);
  text-wrap: pretty;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
  padding-block: 20px max(24px, env(safe-area-inset-bottom, 0px));
  font-size: 0.875rem;
}

.copy { margin: 0; color: var(--muted); }

/* Entrata morbida: logo, poi titolo e testo. Solo se l'utente non chiede meno movimento. */
@media (prefers-reduced-motion: no-preference) {
  .app-icon, .headline, .sub {
    animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .headline { animation-delay: 0.12s; }
  .sub { animation-delay: 0.22s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}
