/* ============================================================
   LANDING PAGE — Librintana pre-lancio
   ============================================================ */

:root {
  --ld-primary: #1A7B85;
  --ld-primary-dark: #15656D;
  --ld-primary-light: rgba(26, 123, 133, 0.10);
  --ld-accent: #C16E5A;
  --ld-bg: #FDFCF5;
  --ld-bg-alt: #F6F1E7;
  --ld-text: #2F3E46;
  --ld-text-soft: #5C6B72;
  --ld-muted: #6B7280;
  --ld-disabled: #A0998F;
  --ld-border: #E0D8CF;
  --ld-white: #ffffff;
  --ld-radius-sm: 8px;
  --ld-radius: 16px;
  --ld-radius-lg: 24px;
  --ld-radius-full: 9999px;
  --ld-shadow-card: 0 2px 8px rgba(47, 62, 70, 0.08);
  --ld-shadow-soft: 0 10px 40px -18px rgba(47, 62, 70, 0.28);
}

* { font-family: 'Nunito', system-ui, sans-serif; box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── BASE ── */
.ld-body {
  background: var(--ld-bg);
  color: var(--ld-text);
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ld-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
.ld-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ld-primary);
  border-top: 4px solid var(--ld-primary-dark);
}
.ld-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.ld-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.ld-brand__logo { width: 44px; height: 44px; }
.ld-brand__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ld-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ld-btn-accedi {
  display: inline-flex;
  align-items: center;
  color: var(--ld-white);
  border: 1.5px solid rgba(255,255,255,0.55);
  background: transparent;
  border-radius: var(--ld-radius-full);
  padding: 9px 22px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ld-btn-accedi:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--ld-white);
}

/* ── HERO ── */
.ld-hero {
  background: var(--ld-bg);
  border-bottom: 1px solid var(--ld-border);
}
.ld-hero .ld-container {
  padding-top: 88px;
  padding-bottom: 92px;
}
.ld-hero__inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  text-align: left;
}
.ld-hero__main {
  flex: 1 1 0;
  min-width: 0;
  max-width: 560px;
}
.ld-hero__visual {
  flex: 0 0 auto;
  width: clamp(220px, 32vw, 360px);
  margin-top: 6px;
}
.ld-hero__illo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(47, 62, 70, 0.18));
}
.ld-eyebrow,
.ld-hero__tagline {
  margin: 0 0 22px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ld-primary);
}
.ld-hero__h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ld-text);
  max-width: 20ch;
  text-wrap: balance;
}
.ld-key { color: inherit; }
.ld-hero__sub {
  margin: 26px 0 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--ld-text-soft);
  max-width: 46ch;
  text-wrap: pretty;
}
.ld-hero__action {
  margin-top: 36px;
  width: 100%;
  max-width: 560px;
}

/* ── FORM PILL ── */
.ld-form-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ld-text);
  margin: 0 0 14px;
  text-align: left;
}
.ld-signup-form {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ld-white);
  border: 1.5px solid var(--ld-border);
  border-radius: var(--ld-radius-full);
  padding: 6px 6px 6px 8px;
  box-shadow: var(--ld-shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ld-signup-form:focus-within {
  border-color: var(--ld-primary);
  box-shadow: 0 0 0 4px var(--ld-primary-light);
}
.ld-signup-form input[type="email"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1rem;
  color: var(--ld-text);
  padding: 12px 14px;
}
.ld-signup-form input::placeholder { color: var(--ld-disabled); }
.ld-btn-cta {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  background: var(--ld-primary);
  color: var(--ld-white);
  border-radius: var(--ld-radius-full);
  padding: 13px 26px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.2s, transform 0.12s;
}
.ld-btn-cta:hover { background: var(--ld-primary-dark); }
.ld-btn-cta:active { transform: translateY(1px); }
.ld-microcopy {
  margin: 16px 0 0;
  font-size: 0.84rem;
  color: var(--ld-disabled);
  line-height: 1.5;
  text-align: left;
  max-width: 48ch;
}

/* honeypot (nuovo stile) */
.ld-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── IN TRE PILE ── */
.ld-pillars .ld-container {
  padding-top: 84px;
  padding-bottom: 84px;
}
.ld-section-head {
  text-align: center;
  margin-bottom: 50px;
}
.ld-section-title {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--ld-text);
  letter-spacing: -0.01em;
}
.ld-section-sub {
  margin: 12px 0 0;
  font-size: 1rem;
  color: var(--ld-text-soft);
}
.ld-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ld-pillar {
  background: var(--ld-white);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius-lg);
  padding: 38px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ld-pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--ld-shadow-soft);
}
.ld-pillar-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ld-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ld-primary);
  margin-bottom: 22px;
}
.ld-pillar-icon svg { width: 34px; height: 34px; }
.ld-pillar-kanji {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ld-primary);
  line-height: 1;
}
.ld-pillar h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ld-primary);
}
.ld-pillar p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--ld-text-soft);
  text-wrap: pretty;
}
.ld-pillars-link {
  text-align: center;
  margin-top: 40px;
}
.ld-pillars-link a {
  color: var(--ld-primary);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.18s;
}
.ld-pillars-link a:hover { border-bottom-color: currentColor; }

/* ── DENTRO LA TANA ── */
.ld-inside {
  background: var(--ld-bg-alt);
  border-top: 1px solid var(--ld-border);
  border-bottom: 1px solid var(--ld-border);
}
.ld-inside .ld-container {
  padding-top: 80px;
  padding-bottom: 80px;
}
.ld-tana-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ld-tana-grid--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.ld-tana-card { display: flex; flex-direction: column; }
.ld-frame {
  background: var(--ld-white);
  border: 1px solid var(--ld-border);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--ld-shadow-card);
}
.ld-frame-screen {
  position: relative;
  aspect-ratio: 1080 / 2094;
  border-radius: 16px;
  background: linear-gradient(180deg, #FBF7EE 0%, #F3ECDD 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ld-frame-img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  opacity: 0.75;
}
/* screenshot reali: riempiono lo schermo del mockup, nitidi */
.ld-frame--shot .ld-frame-screen {
  background: var(--ld-white);
}
.ld-frame--shot .ld-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 1;
}
.ld-frame-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ld-disabled);
  background: rgba(253,252,245,0.85);
  border: 1px solid var(--ld-border);
  padding: 4px 9px;
  border-radius: var(--ld-radius-full);
}
.ld-tana-card__title {
  margin: 22px 0 8px;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--ld-text);
  text-align: center;
}
.ld-tana-card__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ld-text-soft);
  text-align: center;
  text-wrap: pretty;
}
.ld-inside-note {
  text-align: center;
  margin-top: 46px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ld-disabled);
}

/* ── GOODREADS BRIDGE ── */
.ld-goodreads {
  background: #EDF6F7;
  border-top: 1px solid rgba(26, 123, 133, 0.14);
  border-bottom: 1px solid rgba(26, 123, 133, 0.14);
}
.ld-goodreads .ld-container {
  padding-top: 80px;
  padding-bottom: 80px;
}
.ld-goodreads__inner {
  display: flex;
  align-items: center;
  gap: 56px;
}
.ld-goodreads__copy {
  flex: 1 1 0;
  min-width: 0;
}
.ld-goodreads__title {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--ld-text);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.ld-goodreads__sub {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ld-text-soft);
  max-width: 44ch;
  text-wrap: pretty;
}
.ld-goodreads__visual {
  flex: 0 0 auto;
}
.ld-import-card {
  background: var(--ld-white);
  border: 1.5px solid var(--ld-border);
  border-radius: var(--ld-radius-lg);
  padding: 32px 36px;
  box-shadow: var(--ld-shadow-soft);
  text-align: center;
  min-width: 280px;
}
.ld-import-card__label {
  margin: 0 0 24px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ld-muted);
}
.ld-import-card__breakdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.ld-import-card__sep {
  font-size: 2rem;
  color: var(--ld-border);
  font-weight: 300;
  line-height: 1;
}
.ld-import-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ld-import-stat__num {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
}
.ld-import-stat__tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ld-import-stat--carta .ld-import-stat__num,
.ld-import-stat--carta .ld-import-stat__tag { color: var(--ld-primary); }
.ld-import-stat--ebook .ld-import-stat__num,
.ld-import-stat--ebook .ld-import-stat__tag { color: var(--ld-accent); }
.ld-import-card__confirm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ld-primary);
  background: var(--ld-primary-light);
  border-radius: var(--ld-radius-full);
  padding: 8px 18px;
}
.ld-import-card__confirm svg {
  width: 15px;
  height: 15px;
  stroke: var(--ld-primary);
  flex-shrink: 0;
}

/* ── EARLY ACCESS CTA ── */
.ld-cta {
  background: var(--ld-primary);
  color: var(--ld-white);
}
.ld-cta__inner {
  padding-top: 92px;
  padding-bottom: 92px;
  max-width: 720px;
  text-align: center;
}
.ld-cta__title {
  margin: 0 0 32px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ld-white);
}
.ld-perks {
  list-style: none;
  margin: 0 auto 40px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.ld-perks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.05rem;
  line-height: 1.45;
}
.ld-tick {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.ld-tick svg { width: 14px; height: 14px; stroke: var(--ld-white); }
.ld-perks li strong { font-weight: 800; }
.ld-perks li span { color: rgba(255,255,255,0.86); }
.ld-cta-form-wrap { max-width: 540px; margin: 0 auto; }

/* form pill su sfondo teal */
.ld-cta .ld-form-label { color: var(--ld-white); text-align: center; }
.ld-cta .ld-microcopy { color: rgba(255,255,255,0.72); text-align: center; margin-left: auto; margin-right: auto; }
.ld-cta .ld-signup-form {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
  box-shadow: none;
}
.ld-cta .ld-signup-form:focus-within {
  border-color: var(--ld-white);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.14);
}
.ld-cta .ld-signup-form input[type="email"] { color: var(--ld-white); }
.ld-cta .ld-signup-form input::placeholder { color: rgba(255,255,255,0.65); }
.ld-cta .ld-btn-cta { background: var(--ld-white); color: var(--ld-primary); }
.ld-cta .ld-btn-cta:hover { background: #EAF3F4; }

/* ── FOOTER ── */
.ld-footer { background: var(--ld-text); color: rgba(255,255,255,0.75); }
.ld-footer .ld-container {
  padding-top: 16px;
  padding-bottom: 16px;
  text-align: center;
}
.ld-footer__brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ld-white);
  font-size: 0.95rem;
  margin: 0 0 18px;
}
.ld-footer__brand a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-weight: 600;
}
.ld-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 0 8px;
}
.ld-footer__links a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.15s;
}
.ld-footer__links a:hover { color: var(--ld-white); }
.ld-footer-sep { color: rgba(255,255,255,0.28); margin: 0 14px; }
.ld-footer__tagline {
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin: 6px 0 0;
}

/* ── LEGACY FORM (usato in philosophy.html) ── */
.ld-form { text-align: left; max-width: 520px; margin: 0 auto; }
.ld-form__label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ld-text);
  margin-bottom: 10px;
  text-align: center;
}
.ld-form__row { display: flex; gap: 8px; }
@media (max-width: 480px) { .ld-form__row { flex-direction: column; } }
.ld-form__input {
  flex: 1;
  padding: 13px 18px;
  border: 2px solid var(--ld-border);
  border-radius: var(--ld-radius-full);
  font-size: 15px;
  color: var(--ld-text);
  background: var(--ld-white);
  outline: none;
  transition: border-color 0.2s;
}
.ld-form__input:focus { border-color: var(--ld-primary); }
.ld-form__btn {
  padding: 13px 24px;
  background: var(--ld-primary);
  color: var(--ld-white);
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: var(--ld-radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.ld-form__btn:hover { background: var(--ld-primary-dark); }
.ld-form__microcopy {
  font-size: 13px;
  color: var(--ld-muted);
  margin: 10px 0 0;
  text-align: center;
  line-height: 1.5;
}
.ld-form--light .ld-form__label { color: rgba(255,255,255,0.9); }
.ld-form__input--light {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: var(--ld-white);
}
.ld-form__input--light::placeholder { color: rgba(255,255,255,0.5); }
.ld-form__input--light:focus { border-color: rgba(255,255,255,0.8); }
.ld-form__btn--light { background: var(--ld-white); color: var(--ld-primary); }
.ld-form__btn--light:hover { background: var(--ld-bg-alt); }
.ld-form__microcopy--light { color: rgba(255,255,255,0.7); }

/* legacy honeypot (philosophy.html) */
.ld-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ── PAGINE DI STATO (pending, confirmed, cancelled) ── */
.ld-body--centered {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.ld-status-card {
  background: var(--ld-white);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius);
  padding: 40px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--ld-shadow-card);
}
.ld-status-card--success {
  border-color: var(--ld-primary);
  border-width: 2px;
}
.ld-status-card__logo {
  height: 56px;
  width: 56px;
  margin: 0 auto 20px;
  display: block;
}
.ld-status-card__logo--large { height: 80px; width: 80px; }
.ld-status-card__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ld-text);
  margin: 0 0 16px;
}
.ld-status-card__text {
  font-size: 15px;
  color: var(--ld-muted);
  line-height: 1.6;
  margin: 0 0 28px;
}
.ld-status-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ld-primary);
  text-decoration: none;
}
.ld-status-card__link:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .ld-goodreads__inner { flex-direction: column; align-items: center; text-align: center; gap: 40px; }
  .ld-goodreads__sub { margin-left: auto; margin-right: auto; }
  .ld-pillars-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .ld-tana-grid { grid-template-columns: repeat(2, 1fr); }
  /* terza card orfana: la centro invece di lasciarla a sinistra */
  .ld-tana-grid--three {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
  }
  .ld-tana-grid--three .ld-tana-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 11px);
    margin-left: auto;
    margin-right: auto;
  }
  /* hero torna in colonna: illustrazione sopra, testo sotto e centrato */
  .ld-hero__inner {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 32px;
  }
  .ld-hero__main { max-width: 600px; margin-left: auto; margin-right: auto; }
  .ld-hero__action { margin-left: auto; margin-right: auto; }
  .ld-hero__visual { width: clamp(200px, 56vw, 300px); margin-top: 0; }
  .ld-hero__h1,
  .ld-hero__sub { margin-left: auto; margin-right: auto; }
  .ld-form-label,
  .ld-microcopy { text-align: center; }
  .ld-microcopy { margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .ld-import-card { min-width: 0; width: 100%; max-width: 300px; padding: 28px 20px; }
  .ld-container { padding: 0 18px; }
  .ld-cta .ld-container {
    padding-top: 88px;
    padding-bottom: 92px;
  }
  .ld-hero .ld-container { padding-top: 56px; padding-bottom: 60px; }
  .ld-tana-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  /* griglia three: colonna singola, terza card torna normale */
  .ld-tana-grid--three {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .ld-tana-grid--three .ld-tana-card:last-child {
    grid-column: auto;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .ld-signup-form {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: var(--ld-radius-lg);
    gap: 10px;
  }
  .ld-signup-form input[type="email"] { text-align: center; }
  .ld-btn-cta { width: 100%; padding: 14px; text-align: center; }
  .ld-brand__name { font-size: 1rem; }
  .ld-footer__links { flex-direction: column; }
  .ld-footer-sep { display: none; }
}
