/* ═══════════════════════════════════════════════════════════
   GIFTFLY LANDING PAGE — Design System
   Coerente con: colors.ts, typography.ts, design neo-brutalist soft
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Palette — da colors.ts */
  --mint:       #C8F5D8;
  --yellow:     #FFF0A0;
  --lavender:   #E8E4FC;
  --blush:      #FFD6E0;
  --teal:       #C2F0EC;
  --ink:        #111111;
  --muted:      #888888;
  --hint:       #CCCCCC;
  --border-col: #E0DED8;
  --background: #FFFFFF;
  --surface:    #F8F7F5;

  /* Border radius — da typography.ts */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-full: 100px;

  /* Neo-brutalist: bordi e ombre */
  --border:     2px solid var(--ink);
  --shadow:     3px 3px 0 var(--ink);
  --shadow-lg:  4px 4px 0 var(--ink);
  --shadow-sm:  2px 2px 0 var(--ink);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
}

/* ═══════════════════════════════════════════════════════════
   TIPOGRAFIA — da typography.ts (adattata a web)
   ═══════════════════════════════════════════════════════════ */
h1 {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.18;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(22px, 5.5vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 32px;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

p {
  font-size: 15px;
  line-height: 1.7;
}

strong {
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   COMPONENTI
   ═══════════════════════════════════════════════════════════ */

/* Label tag — come le sezione label dell'app */
.label-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Label tag hero — più prominente, con pill colorata */
.hero .label-tag {
  color: var(--ink);
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--r-full);
  padding: 4px 12px;
  margin-bottom: 18px;
}

/* ── Bottone primario (mint) ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--mint);
  color: var(--ink);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 14px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  white-space: nowrap;
  text-decoration: none;
  width: 100%;
}

.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-primary:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow);
}

/* ── Bottone CTA finale (ink su fondo mint) ── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--background);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 14px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  white-space: nowrap;
  width: 100%;
}

.btn-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-cta:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.btn-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow);
}

/* ── Form email ── */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.email-form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  border: var(--border);
  border-radius: var(--r-md);
  background: var(--background);
  color: var(--ink);
  outline: none;
  box-shadow: var(--shadow);
  transition: box-shadow 0.1s;
}

.email-form input[type="email"]:focus {
  box-shadow: 4px 4px 0 var(--ink);
}

.email-form input[type="email"]::placeholder {
  color: var(--muted);
}

.micro-copy {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.micro-copy-dark {
  color: #4a7a5a; /* muted su fondo mint */
}

/* ── Messaggio di successo ── */
.success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 24px;
  background: var(--mint);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--r-lg);
  text-align: center;
}

.success-card-dark {
  background: var(--ink);
}

.success-card-dark p {
  color: var(--background);
}

.success-emoji {
  font-size: 32px;
  line-height: 1;
}

.success-card p {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
}

/* ── Card problema ── */
.card {
  border: var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--r-lg);
  padding: 24px;
}

.card-blush  { background: var(--blush); }
.card-yellow { background: var(--yellow); }
.card-mint   { background: var(--mint); }

.card-emoji {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

.card p {
  font-size: 15px;
  line-height: 1.75;
}

/* ── Mockup card (visual desktop hero) ── */
.mockup-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: transform 0.1s, box-shadow 0.1s;
}

.mockup-card:nth-child(2) {
  transform: translateX(12px);
}

.mockup-card:nth-child(3) {
  transform: translateX(6px);
}

.mockup-blush   { background: var(--blush); }
.mockup-yellow  { background: var(--yellow); }
.mockup-lavender { background: var(--lavender); }

.mockup-emoji {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.mockup-content {
  flex: 1;
  min-width: 0;
}

.mockup-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.mockup-detail {
  font-size: 12px;
  color: var(--muted);
}

.mockup-detail strong {
  color: var(--ink);
}

.mockup-badge {
  font-size: 11px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mockup-badge-red   { background: var(--blush); }
.mockup-badge-green { background: var(--mint); }

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
  border-bottom: 2px solid var(--ink);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.3px;
  user-select: none;
}

.nav-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 16px;
  border: var(--border);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s, box-shadow 0.1s;
}

.nav-cta:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* ═══════════════════════════════════════════════════════════
   SEZIONE 1 — HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  padding: 56px 0 48px;
  background: var(--background);
}

/* Su mobile: colonna singola */
.hero-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

/* Il visual è nascosto su mobile */
.hero-visual {
  display: none;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.subheadline {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* Accent pills — visibili solo su mobile */
.hero-accent {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.accent-pill {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border: var(--border);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
}

.accent-mint     { background: var(--mint); }
.accent-yellow   { background: var(--yellow); }
.accent-lavender { background: var(--lavender); }

/* ═══════════════════════════════════════════════════════════
   SEZIONE 2 — PROBLEMA
   ═══════════════════════════════════════════════════════════ */
.problem {
  background: var(--surface);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.problem h2 {
  margin-bottom: 28px;
}

.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ═══════════════════════════════════════════════════════════
   SEZIONE 3 — SOLUZIONE
   ═══════════════════════════════════════════════════════════ */
.solution {
  background: var(--background);
}

.pillole-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillola {
  padding: 24px;
  border: 2px solid var(--border-col);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pillola:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.pillola-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

.pillola h3 {
  margin-bottom: 8px;
}

.pillola p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   SEZIONE 4 — SOCIAL PROOF
   ═══════════════════════════════════════════════════════════ */
.social-proof {
  background: var(--lavender);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.iscritti-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  background: var(--background);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--r-full);
  margin-bottom: 28px;
}

.iscritti-counter strong {
  font-size: 18px;
  font-weight: 800;
}

.quotes-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quote-card {
  background: var(--background);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--r-lg);
  padding: 24px;
  list-style: none;
}

.quote-card p {
  font-size: 15px;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.65;
}

.quote-card cite {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════════
   SEZIONE 5 — CTA FINALE
   ═══════════════════════════════════════════════════════════ */
.cta-finale {
  background: var(--mint);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.cta-finale .label-tag {
  color: #4a7a5a;
}

.cta-subtitle {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
}

.cta-urgency {
  font-size: 15px;
  color: #4a7a5a;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Override input su fondo mint */
.cta-finale .email-form input[type="email"] {
  background: var(--background);
}

/* ═══════════════════════════════════════════════════════════
   SEZIONE 6 — FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--ink);
  color: var(--background);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo {
  display: block;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--hint);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--hint);
  text-underline-offset: 3px;
}

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

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≥ 560px)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 560px) {
  .email-form {
    flex-direction: row;
    align-items: stretch;
  }

  .email-form input[type="email"] {
    flex: 1;
  }

  .btn-primary,
  .btn-cta {
    width: auto;
  }

  .quotes-grid {
    flex-direction: row;
  }

  .quote-card {
    flex: 1;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Desktop (≥ 768px)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  section {
    padding: 88px 0;
  }

  /* ── Hero: 2 colonne — testo sx, visual dx ── */
  .hero {
    padding: 80px 0;
  }

  .hero-container {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }

  .hero-left {
    flex: 1;
    min-width: 0;
  }

  .hero-visual {
    display: flex;
    width: 340px;
    flex-shrink: 0;
  }

  /* Accent pills nascoste su desktop */
  .hero-accent { display: none; }

  /* Pillole a 3 colonne */
  .pillole-grid {
    flex-direction: row;
    align-items: stretch;
  }

  .pillola { flex: 1; }

  /* Problema: 3 card affiancate */
  .cards-grid {
    flex-direction: row;
    align-items: stretch;
  }

  .card { flex: 1; }

  /* Footer orizzontale */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}
