/* BeauVì Tech — landing page statica (www.beauvitech.com).
   Colori e font ripresi da src/index.css e tailwind.config.ts dell'app. */

:root {
  --cherry: hsl(350 67% 16%); /* --primary dell'app (pulsanti), Black Cherry */
  --ink: #2b2d33;           /* antracite */
  --ink-soft: #5f636e;
  --bg: #f2f3f5;
  --card: #ffffff;
  --border: #dadde3;
  --gold: #d4b98c;
  --ivory: #f7f2ec;
  --serif: "Cormorant Garamond", ui-serif, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ——— Header ——— */
.site-header {
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 44px; height: auto; }
.brand span {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lang {
  display: flex;
  gap: 4px;
  font-size: 12px;
  letter-spacing: 0.2em;
}
.lang a {
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] {
  border-color: var(--border);
  color: var(--cherry);
  font-weight: 600;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  color: var(--ivory);
  /* Sfumatura lunga a curva morbida (smoothstep, 16 passaggi): dal colore
     dei pulsanti dell'app a trasparente, senza punti di cambio netto. */
  background:
    linear-gradient(100deg,
      hsl(350 67% 16% / 0.97) 0%,
      hsl(350 67% 16% / 0.97) 28%,
      hsl(350 66.7% 16.3% / 0.958) 32.8%,
      hsl(350 65.7% 17.2% / 0.923) 37.6%,
      hsl(350 64.2% 18.5% / 0.869) 42.4%,
      hsl(350 62.3% 20.2% / 0.8) 47.2%,
      hsl(350 60% 22.2% / 0.719) 52%,
      hsl(350 57.5% 24.4% / 0.629) 56.8%,
      hsl(350 54.8% 26.8% / 0.533) 61.6%,
      hsl(350 52.2% 29.2% / 0.437) 66.4%,
      hsl(350 49.5% 31.6% / 0.341) 71.2%,
      hsl(350 47% 33.8% / 0.251) 76%,
      hsl(350 44.7% 35.8% / 0.17) 80.8%,
      hsl(350 42.8% 37.5% / 0.101) 85.6%,
      hsl(350 41.3% 38.8% / 0.047) 90.4%,
      hsl(350 40.3% 39.7% / 0.012) 95.2%,
      hsl(350 40% 40% / 0) 100%),
    url("assets/silk.jpg") center / cover no-repeat,
    hsl(350 67% 16%);
}
.hero .wrap {
  padding-block: clamp(72px, 12vw, 140px);
}
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  max-width: 14ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.hero h1 em {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}
.hero .lead {
  max-width: 52ch;
  margin: 24px 0 0;
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 300;
  color: rgba(247, 242, 236, 0.86);
}

/* ——— Pulsanti store (placeholder finché l'app non è pubblicata) ——— */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 190px;
  padding: 10px 22px;
  border-radius: 12px;
  line-height: 1.2;
  cursor: not-allowed;
}
.store small {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}
.store strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}
.stores--dark .store {
  border: 1px solid rgba(247, 242, 236, 0.45);
  background: rgba(247, 242, 236, 0.06);
  color: var(--ivory);
}
.soon {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(247, 242, 236, 0.7);
}

/* ——— Funzionalità ——— */
.features { padding-block: clamp(72px, 10vw, 120px); }
.features .eyebrow { color: var(--cherry); }
.features h2,
.cta h2 {
  max-width: 22ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 500;
  line-height: 1.1;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.card {
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: 4px;
}
.card .num {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--cherry);
}
.card h3 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}
.card p {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink-soft);
}

/* ——— Privacy ——— */
.privacy {
  border-block: 1px solid var(--border);
  background: var(--card);
}
.privacy .wrap {
  padding-block: 40px;
  text-align: center;
}
.privacy .eyebrow { color: var(--cherry); margin-bottom: 10px; }
.privacy p:last-child {
  max-width: 60ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.4;
}

/* ——— Call to action finale ——— */
.cta {
  background: var(--cherry);
  color: var(--ivory);
  text-align: center;
}
.cta .wrap { padding-block: clamp(64px, 9vw, 104px); }
.cta .eyebrow { color: var(--gold); }
.cta h2 { margin-inline: auto; }
.cta .stores { justify-content: center; }

/* ——— Footer ——— */
.site-footer {
  padding-bottom: env(safe-area-inset-bottom, 0px);
  font-size: 13px;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 32px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.site-footer a:hover { color: var(--ink); border-color: var(--ink); }

/* ——— Mobile ——— */
@media (max-width: 720px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .brand span { font-size: 20px; }
  .brand img { width: 38px; }
  .store { flex: 1 1 150px; min-width: 0; padding-inline: 16px; }
  .store small { white-space: nowrap; letter-spacing: 0.12em; }
  /* Su mobile il testo occupa tutta la larghezza: velo pieno dietro il
     testo che si schiarisce gradualmente con la stessa curva morbida del
     desktop, fino a lasciare la seta in vista. */
  .hero {
    background:
      linear-gradient(180deg,
        hsl(350 67% 16% / 0.97) 0%,
        hsl(350 67% 16% / 0.97) 42%,
        hsl(350 66.7% 16.3% / 0.958) 45.9%,
        hsl(350 65.7% 17.2% / 0.923) 49.7%,
        hsl(350 64.2% 18.5% / 0.869) 53.6%,
        hsl(350 62.3% 20.2% / 0.8) 57.5%,
        hsl(350 60% 22.2% / 0.719) 61.3%,
        hsl(350 57.5% 24.4% / 0.629) 65.2%,
        hsl(350 54.8% 26.8% / 0.533) 69.1%,
        hsl(350 52.2% 29.2% / 0.437) 72.9%,
        hsl(350 49.5% 31.6% / 0.341) 76.8%,
        hsl(350 47% 33.8% / 0.251) 80.7%,
        hsl(350 44.7% 35.8% / 0.17) 84.5%,
        hsl(350 42.8% 37.5% / 0.101) 88.4%,
        hsl(350 41.3% 38.8% / 0.047) 92.3%,
        hsl(350 40.3% 39.7% / 0.012) 96.1%,
        hsl(350 40% 40% / 0) 100%),
      url("assets/silk.jpg") 78% 100% / cover no-repeat,
      hsl(350 67% 16%);
  }
  .hero .wrap { padding-top: 56px; padding-bottom: 190px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { margin-top: 18px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* Focus visibile da tastiera */
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
