/* ============================================================
   LANDING PAGE — Librintana
   ============================================================ */

: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;
}

/* ── CTA ── */
.ld-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.ld-btn-cta {
  display: inline-block;
  flex-shrink: 0;
  background: var(--ld-primary);
  color: var(--ld-white);
  border-radius: var(--ld-radius-full);
  padding: 16px 34px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--ld-shadow-card);
  transition: background 0.2s, transform 0.12s;
}
.ld-btn-cta:hover { background: var(--ld-primary-dark); }
.ld-btn-cta:active { transform: translateY(1px); }
.ld-btn-outline {
  display: inline-block;
  flex-shrink: 0;
  padding: 14px 30px;
  border: 2px solid var(--ld-primary);
  border-radius: var(--ld-radius-full);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ld-primary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.ld-btn-outline:hover { background: var(--ld-primary-light); }
.ld-microcopy {
  margin: 16px 0 0;
  font-size: 0.88rem;
  color: var(--ld-muted);
  line-height: 1.5;
  max-width: 48ch;
}
.ld-section-cta {
  margin-top: 36px;
  text-align: center;
}
.ld-section-cta .ld-cta-row { justify-content: center; }
.ld-section-cta .ld-microcopy { margin-left: auto; margin-right: auto; }

/* ── 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;
  flex-wrap: wrap;
  gap: 10px 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-stat--audio .ld-import-stat__num,
.ld-import-stat--audio .ld-import-stat__tag { color: var(--ld-text-soft); }
.ld-goodreads__cta { margin-top: 28px; }
.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;
}

/* ── QUANTO COSTA ── */
.ld-pricing .ld-container {
  padding-top: 84px;
  padding-bottom: 84px;
  max-width: 880px;
}
.ld-pricing__lead {
  margin: 0 auto 40px;
  max-width: 52ch;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ld-text-soft);
}
.ld-pricing__label {
  margin: 0 0 16px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ld-primary);
}
.ld-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.ld-price-card {
  background: var(--ld-white);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius);
  padding: 30px 28px;
  box-shadow: var(--ld-shadow-card);
}
.ld-price-card__kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ld-primary);
}
.ld-price-card__num {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ld-text);
}
.ld-price-card__num small {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ld-text-soft);
}
.ld-price-card__text {
  margin: 12px 0 0;
  line-height: 1.6;
  color: var(--ld-text-soft);
}
.ld-price-unlock {
  margin-top: 22px;
  background: var(--ld-primary-light);
  border-radius: var(--ld-radius);
  padding: 26px 28px;
  text-align: center;
}
.ld-price-unlock__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ld-text);
}
.ld-price-unlock__text {
  margin: 0 auto;
  max-width: 54ch;
  line-height: 1.6;
  color: var(--ld-text-soft);
}

/* ── FAQ ── */
.ld-faq { background: var(--ld-bg-alt); }
.ld-faq .ld-container {
  padding-top: 84px;
  padding-bottom: 84px;
  max-width: 760px;
}
.ld-faq-item {
  background: var(--ld-white);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius);
  margin-bottom: 12px;
}
.ld-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 800;
  color: var(--ld-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.ld-faq-item summary::-webkit-details-marker { display: none; }
.ld-faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ld-primary);
  flex-shrink: 0;
}
.ld-faq-item[open] summary::after { content: "–"; }
.ld-faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  line-height: 1.65;
  color: var(--ld-text-soft);
}

/* ── CTA FINALE ── */
.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 14px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ld-white);
  text-wrap: balance;
}
.ld-cta__sub {
  margin: 0 auto 32px;
  max-width: 44ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.86);
}
.ld-cta .ld-cta-row { justify-content: center; }
.ld-cta .ld-btn-cta { background: var(--ld-white); color: var(--ld-primary); }
.ld-cta .ld-btn-cta:hover { background: #EAF3F4; }
.ld-cta .ld-btn-outline { color: var(--ld-white); border-color: rgba(255,255,255,0.7); }
.ld-cta .ld-btn-outline:hover { background: rgba(255,255,255,0.12); }
.ld-cta .ld-microcopy { color: rgba(255,255,255,0.72); margin-left: auto; margin-right: auto; }

/* ── 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 2px;
}
.ld-footer__tagline {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255,255,255,0.55);
}
.ld-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 20px;
  margin: 0 0 8px;
}
.ld-footer__links a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 4px 0;
  transition: color 0.15s;
}
.ld-footer__links a:hover { color: var(--ld-white); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .ld-pricing-grid { grid-template-columns: 1fr; }
  .ld-goodreads__inner { flex-direction: column; align-items: center; text-align: center; gap: 40px; }
  .ld-goodreads__sub { margin-left: auto; margin-right: auto; }
  .ld-goodreads__cta { justify-content: center; }
  .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-microcopy { text-align: center; margin-left: auto; margin-right: auto; }
  .ld-cta-row { justify-content: center; }
}
@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-cta-row { flex-direction: column; align-items: stretch; }
  .ld-btn-cta,
  .ld-btn-outline { width: 100%; text-align: center; }
  .ld-brand__name { font-size: 1rem; }
  .ld-footer__links a { padding: 10px 0; }
  .ld-footer__links { column-gap: 14px; }
}

.philosophy-cta-section .ld-cta-row { justify-content: center; }
