/* ============================================================
   Flotip — landing minimale ispirata al theme "atom" (3rdwave).
   - Palette: cream / gold (coerente con UIColor.Brand della app).
   - Layout fissato a 100vh, niente scroll.
   - iPhone mockup in CSS puro (no asset esterni).
   ============================================================ */

:root {
  --gold-primary:    #6F510B;
  --gold-secondary:  #B8860B;
  --gold-on-dark:    #DAA520;
  --cream-surface:   #FBF6E7;
  --cream-border:    #ECE7D6;
  --ink:             #1A1408;
  --ink-soft:        #5A4A2A;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
               "Segoe UI Emoji";
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: linear-gradient(135deg, #FBF6E7 0%, #F5EDD2 100%);
  /* Pagina FISSA — niente scroll, come da richiesta. */
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout principale: hero a tutta altezza */
.flotip-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Top brand strip ---------- */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
}

.brand-mark {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: -0.5px;
}

.brand-bar nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  margin-left: 24px;
  transition: color .15s;
}
.brand-bar nav a:hover { color: var(--gold-primary); }

/* ---------- Hero ----------
   Layout single-column: il mockup iPhone è stato rimosso, quindi
   centriamo verticalmente la copy e lasciamo un buon respiro laterale. */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 64px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 24px;
}

.hero-copy h1 .accent {
  color: var(--gold-primary);
}

.hero-copy p.lede {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* App Store badge — usa il PNG/SVG ufficiale Apple servito da
   tools.applemediaservices.com. Diamo un piccolo hover lift e
   ombra sottile coerente con la palette cream/gold. */
.appstore-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px -10px rgba(26, 20, 8, 0.45);
}
.appstore-badge img {
  height: 56px;
  width: auto;
  display: block;
  border-radius: 12px;
}
.appstore-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(26, 20, 8, 0.55);
}

.btn-primary-flotip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-primary);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.1px;
  transition: transform .12s ease, background .12s ease;
}
.btn-primary-flotip:hover {
  background: #5b410a;
  transform: translateY(-1px);
  color: #fff !important;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream-surface);
  border: 1px solid var(--cream-border);
  color: var(--ink-soft);
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
}

.badge-soon .dot {
  width: 6px;
  height: 6px;
  background: var(--gold-secondary);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.4); }
}

/* ---------- iPhone mockup ---------- */
.phone-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.phone {
  /* Form factor moderno (iPhone 15/16/17 — Dynamic Island, bordi sottili) */
  width: 280px;
  height: 580px;
  background: #0d0d0f;
  border-radius: 56px;
  padding: 12px;
  position: relative;
  box-shadow:
    0 30px 60px -20px rgba(111, 81, 11, 0.35),
    0 18px 36px -16px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1.5px #2a2a2c;
  transform: rotate(-4deg);
}

/* Side hardware buttons (cosmetic) */
.phone::before, .phone::after {
  content: "";
  position: absolute;
  background: #1f1f22;
  border-radius: 2px;
}
.phone::before {  /* volume/silent — left side */
  width: 3px; height: 80px;
  left: -3px; top: 130px;
  box-shadow:
    0 50px 0 #1f1f22,
    0 110px 0 #1f1f22;
}
.phone::after {   /* power — right side */
  width: 3px; height: 100px;
  right: -3px; top: 160px;
}

.screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #FBF6E7 0%, #F1E6C2 100%);
  border-radius: 44px;
  position: relative;
  overflow: hidden;
}

.dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 102px;
  height: 30px;
  background: #0d0d0f;
  border-radius: 18px;
  z-index: 4;
}

/* Inner app preview (statico, evocativo del feed Flotip) */
.app-preview {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 60px 18px 80px;
}

.app-explore {
  text-align: center;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 12px;
}

.app-photo {
  flex: 1;
  background:
    radial-gradient(circle at 30% 30%, rgba(218,165,32,0.30), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(111,81,11,0.18), transparent 60%),
    linear-gradient(135deg, #2c2417 0%, #4a3818 50%, #1f1810 100%);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

/* "Bandierina" stilizzata al centro della foto: tassello brand */
.app-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect x='32' y='18' width='3' height='64' rx='1.5' fill='%23DAA520' opacity='0.55'/><path d='M35 22 L78 22 L66 42 L78 62 L35 62 Z' fill='%23DAA520' opacity='0.55'/></svg>") no-repeat center / 60% auto;
}

.app-meta {
  position: absolute;
  bottom: 80px;
  left: 24px;
  right: 24px;
  color: #fff;
}
.app-meta .author {
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 2px;
}
.app-meta .caption {
  font-size: 9px;
  line-height: 1.3;
  opacity: 0.92;
  margin-bottom: 6px;
}
.app-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.app-actions .icon {
  width: 16px; height: 16px;
  border: 1.4px solid #fff;
  border-radius: 3px;
  position: relative;
}
.app-actions .icon.heart {
  border: none;
  width: 16px; height: 14px;
  background: transparent;
}
.app-actions .icon.heart::before {
  content: "♥";
  position: absolute;
  inset: 0;
  color: #fff;
  font-size: 18px;
  line-height: 14px;
  text-align: center;
}
.app-actions .icon.send {
  border: none;
  width: 16px; height: 16px;
}
.app-actions .icon.send::before {
  content: "➤";
  color: #fff;
  font-size: 14px;
  position: absolute;
  inset: 0;
  text-align: center;
  line-height: 16px;
}

.app-tabbar {
  position: absolute;
  bottom: 14px;
  left: 24px;
  right: 24px;
  height: 44px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.app-tabbar .tab {
  width: 16px; height: 16px;
  border: 1.6px solid var(--ink-soft);
  border-radius: 3px;
}
.app-tabbar .tab.active { border-color: var(--gold-primary); }

/* ---------- Footer ---------- */
.flotip-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  font-size: 13px;
  color: var(--ink-soft);
}
.flotip-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 16px;
}
.flotip-footer a:hover { color: var(--gold-primary); }

/* ---------- Mobile responsive ----------
   Quando la viewport è stretta (mobile), passiamo a layout colonna e
   permettiamo lo scroll: mantenere un layout fisso su uno smartphone
   reale rovinerebbe la lettura. */
@media (max-width: 900px) {
  body { overflow: auto; }
  .hero {
    padding: 24px 24px 48px;
  }
  .hero-copy p.lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .brand-bar { padding: 18px 24px; }
  .appstore-badge img { height: 48px; }
  .flotip-footer {
    flex-direction: column;
    gap: 8px;
    padding: 16px 24px 32px;
    text-align: center;
  }
  .flotip-footer a { margin-left: 0; margin-right: 12px; }
}

/* ---------- Pagina /legal ----------
   Diversa logica: testo lungo, qui lo scroll è permesso. */
.legal-page {
  overflow: auto;
}
.legal-page body {
  overflow: auto;
}

.legal-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.legal-shell h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -1px;
  margin: 0 0 8px;
  color: var(--gold-primary);
  font-weight: 700;
}
.legal-shell .updated {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 32px;
}
.legal-shell h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--cream-border);
  padding-bottom: 6px;
}
.legal-shell h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--ink);
}
.legal-shell p,
.legal-shell li {
  line-height: 1.65;
  color: var(--ink-soft);
  font-size: 15px;
}
.legal-shell ul, .legal-shell ol {
  padding-left: 22px;
}
.legal-shell li { margin-bottom: 4px; }

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--gold-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.back-home:hover { color: var(--gold-secondary); }
