/* Font ospitati in locale (Sora, DM Sans - licenza SIL OFL) */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/sora-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sora-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sora-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/sora-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-300-italic.woff2') format('woff2');
}

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

:root {
  --brand:       #A70063;
  --brand-dark:  #85004e;
  --brand-light: #c9337f;
  --brand-pale:  #fceef6;

  --accent:      #473A6F;
  --accent-dark: #322a52;
  --accent-pale: #efecf8;

  --ink:         #1a1220;
  --ink-mid:     #453556;
  --ink-muted:   #8a7a9a;

  --surface:     #fdfbff;
  --surface-2:   #f7f3fc;

  --border:      rgba(167, 0, 99, 0.13);
  --radius:      16px;
  --radius-lg:   24px;
  --shadow:      0 2px 24px rgba(71, 58, 111, 0.10);
  --shadow-lg:   0 8px 48px rgba(71, 58, 111, 0.18);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--surface);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── BACKGROUND ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 10% 0%, rgba(167,0,99,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 95% 100%, rgba(71,58,111,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── LAYOUT ── */
.page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem 4rem;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

/* ── LOGO ── */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3.5rem;
  animation: fadeDown 0.5s ease both;
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
}

/* ── INVITE BADGE ── */
.invite-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-pale);
  border: 1px solid rgba(167, 0, 99, 0.22);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  animation: fadeDown 0.5s 0.1s ease both;
}

.invite-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}

/* ── HEADLINE ── */
.headline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  animation: fadeDown 0.5s 0.15s ease both;
}

.headline span {
  color: var(--brand);
}

/* ── SUBTEXT ── */
.subtext {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-mid);
  text-align: center;
  line-height: 1.65;
  max-width: 380px;
  margin-bottom: 1.75rem;
  animation: fadeDown 0.5s 0.2s ease both;
}

/* ── NEXT STEP BOX ── */
.next-step {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: var(--accent-pale);
  border: 1px solid rgba(71, 58, 111, 0.22);
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.5s 0.25s ease both;
}

.next-step-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.next-step-text {
  font-size: 0.875rem;
  color: var(--accent-dark);
  line-height: 1.55;
}

.next-step-text strong {
  color: var(--accent);
  font-weight: 600;
}

/* ── DOWNLOAD CARD ── */
.download-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  animation: fadeUp 0.55s 0.32s ease both;
}

.download-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

/* ── STORE BUTTONS ── */
.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-store {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-store:active {
  transform: translateY(0);
}

.btn-store--ios {
  background: var(--accent);
  color: #fff;
}

.btn-store--android {
  background: var(--brand);
  color: #fff;
}

.btn-store-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-store-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn-store-copy {
  display: flex;
  flex-direction: column;
}

.btn-store-copy small {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.75;
  line-height: 1;
  margin-bottom: 2px;
}

.btn-store-copy strong {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

footer a {
  color: var(--brand);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ── ANIMATIONS ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 400px) {
  .page { padding: 2rem 1.25rem 3rem; }
  .btn-store { padding: 12px 16px; }
}
