/* Wrid.it homepage. Photos are optional layers over gradient fallbacks. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); margin: 0; }
p { margin: 0; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font: 600 11.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.eyebrow-light { color: #c7d2fe; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-dark { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-dark:hover { background: rgba(255, 255, 255, .16); }

.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; }
.checks li { position: relative; padding-left: 26px; font-size: 15px; }
.checks li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.checks-row { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 26px; }
.checks-row li { font-size: 14px; }
.checks-sm li { font-size: 12.5px; padding-left: 20px; }
.checks-sm li::before { width: 9px; height: 5px; }

.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 48px; height: 48px; margin-bottom: 18px; }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(229, 231, 235, .7); }
.nav-in { display: flex; align-items: center; height: 68px; gap: 32px; }
.nav-links { display: flex; gap: 30px; margin: 0 auto 0 40px; }
.nav-links a, .nav-login { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text); }
.nav-links a:hover, .nav-login:hover { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.mobile-menu { display: grid; gap: 4px; padding: 8px 24px 20px; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 10px 0; text-decoration: none; font-weight: 500; }
.mobile-menu .btn { margin-top: 8px; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; background: linear-gradient(90deg, #fff 0%, #fff 38%, #f7f3ec 60%); }
.hero-photo { position: absolute; inset: 0 0 0 38%; background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 22%), url(img/hero-desk.webp) center/cover no-repeat, linear-gradient(160deg, #f3ece1 0%, #e9e1f2 100%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 72px; }
.hero h1 { font: 500 clamp(42px, 4.3vw, 64px)/1.04 var(--serif); letter-spacing: -.02em; margin-bottom: 26px; }
.swash { position: relative; white-space: nowrap; }
.swash::after { content: ''; position: absolute; left: -4%; right: -2%; bottom: -.16em; height: .22em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 12C50 3 120 1 197 6' fill='none' stroke='%233b2eeb' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.lead { font-size: 18px; color: #374151; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-device { position: relative; }

.laptop { width: 100%; max-width: 760px; margin-left: auto; filter: drop-shadow(0 30px 40px rgba(30, 27, 75, .28)); }
.screen { background: #1f2937; border-radius: 18px 18px 6px 6px; padding: 12px; }
.laptop-base { height: 16px; margin: 0 -5%; background: linear-gradient(#d1d5db, #9ca3af); border-radius: 0 0 16px 16px; position: relative; }
.laptop-base::before { content: ''; position: absolute; left: 42%; right: 42%; top: 0; height: 5px; background: #6b7280; border-radius: 0 0 6px 6px; }

/* ── App mock (drawn in HTML) ── */
.mock { display: grid; grid-template-columns: 24% 1fr 27%; background: #fff; border-radius: 8px; overflow: hidden; font: 400 9.5px/1.45 var(--sans); color: #374151; aspect-ratio: 16 / 10; }
.m-side, .m-panel { background: #fafafa; padding: 10px 8px; overflow: hidden; }
.m-side { border-right: 1px solid #eee; }
.m-panel { border-left: 1px solid #eee; }
.m-project { font-weight: 700; color: var(--ink); font-size: 10.5px; margin-bottom: 10px; }
.m-head { font-weight: 600; color: #111827; font-size: 9.5px; margin: 8px 0 6px; padding-bottom: 4px; border-bottom: 1px solid #eee; }
.m-chapters, .m-sections, .m-bookmarks, .m-people { list-style: none; padding: 0; margin: 0; }
.m-chapters li { padding: 3px 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-chapters li b { font-weight: 500; color: #9ca3af; margin-right: 5px; }
.m-chapters li.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.m-chapters li.add { color: #9ca3af; }
.m-sections { margin-top: 8px; border-top: 1px solid #eee; padding-top: 6px; }
.m-sections li { padding: 3px 6px; }
.m-editor { display: flex; flex-direction: column; min-width: 0; }
.m-toolbar { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid #eee; color: #6b7280; }
.m-select { border: 1px solid #e5e7eb; border-radius: 4px; padding: 1px 6px; }
.m-tools { display: flex; gap: 8px; font-family: var(--serif); font-size: 10.5px; color: #4b5563; }
.m-tools i, .m-tools b, .m-tools u, .m-tools s { font-style: normal; }
.m-tools i { font-style: italic; }
.m-saved { margin-left: auto; color: #059669; background: #ecfdf5; border-radius: 10px; padding: 1px 7px; font-size: 8.5px; }
.m-page { padding: 16px 22px; overflow: hidden; }
.m-title { font: 500 19px/1.1 var(--serif); color: var(--ink); }
.m-subtitle { font: 500 14px/1.2 var(--serif); color: var(--ink); margin: 2px 0 10px; }
.m-page p { font-size: 9px; color: #4b5563; margin-bottom: 10px; }
.m-image { height: 34%; min-height: 70px; border-radius: 5px; background: url(img/mock-landscape.webp) center/cover no-repeat, linear-gradient(180deg, #fbbf77 0%, #f59e6b 35%, #7c6aa6 70%, #3b3363 100%); }
.m-count { margin-top: 8px; color: #9ca3af; font-size: 8.5px; }
.m-bookmarks li { display: flex; align-items: center; gap: 6px; padding: 3px 4px; margin-bottom: 3px; border: 1px solid #eee; background: #fff; border-radius: 4px; white-space: nowrap; overflow: hidden; }
.m-bookmarks i { flex: none; width: 7px; height: 9px; border-radius: 1px; }
.m-bookmarks em { margin-left: auto; font-style: normal; color: #9ca3af; }
.m-people li { display: flex; align-items: center; gap: 7px; padding: 4px; margin-bottom: 4px; border: 1px solid #eee; background: #fff; border-radius: 5px; }
.m-people strong { display: block; font-size: 9.5px; color: var(--ink); }
.m-people small { color: #9ca3af; font-size: 8.5px; }
.av { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 10px; }
.av-elena { background: url(img/avatar-elena.webp) center/cover, linear-gradient(135deg, #f472b6, #a855f7); }
.av-marco { background: url(img/avatar-marco.webp) center/cover, linear-gradient(135deg, #60a5fa, #4f46e5); }

/* ── Feature strip ── */
.features { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 22px; padding-top: 36px; padding-bottom: 40px; }
.feature h3 { font: 600 15px/1.3 var(--sans); margin: 16px 0 4px; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ── Split panels ── */
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
.panel { position: relative; background: var(--paper-2); border-radius: 14px; padding: 36px; display: grid; gap: 28px; align-content: start; overflow: hidden; }
.panel h2 { font: 500 clamp(28px, 2.6vw, 36px)/1.12 var(--serif); letter-spacing: -.01em; margin-bottom: 14px; }
.panel-text > p:not(.eyebrow) { font-size: 15.5px; }
.panel-editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: center; }
.panel-ai .title-row { display: flex; gap: 16px; align-items: flex-start; }
.panel-ai .title-row .ico-lg { margin: 0; flex: none; }

.annotated { position: relative; padding-top: 74px; }
.annotated .frame { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 6px; }
.note { position: absolute; top: 0; font: 500 17px/1.05 var(--hand); color: #4338ca; transform: rotate(-3deg); white-space: nowrap; }
.n1 { left: 0; } .n2 { left: 38%; } .n3 { right: 0; }
.arrow { position: absolute; width: 26px; fill: none; stroke: #4338ca; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a1 { left: 6%; top: 34px; height: 42px; } .a2 { left: 44%; top: 34px; height: 52px; } .a3 { right: 14%; top: 34px; height: 42px; }
.mock-detail { aspect-ratio: auto; height: 260px; grid-template-columns: 26% 1fr 30%; }
.mock-detail .m-image { height: 60px; }

.formats { display: flex; gap: 14px; margin-top: 22px; }
.fmt { display: grid; place-items: center; width: 46px; height: 52px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font: 800 12px/1 var(--sans); box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .25); }
.fmt-w { color: #2563eb; font-size: 18px; } .fmt-epub { color: #059669; font-size: 10px; } .fmt-pdf { color: #dc2626; } .fmt-md { color: #111827; font-size: 15px; }
.io-visual { position: relative; min-height: 230px; }
.books { position: absolute; left: 4%; bottom: 6px; width: 132px; height: 186px; transform: rotate(-6deg); border-radius: 3px 8px 8px 3px; background: linear-gradient(90deg, rgba(0, 0, 0, .35) 0 7px, rgba(255, 255, 255, .08) 7px 9px, transparent 9px), linear-gradient(160deg, #2f3d5c, #141b30); box-shadow: 14px 18px 30px -12px rgba(15, 23, 42, .55); color: #f5f0e6; padding: 22px 14px 0 20px; font: 500 22px/1.05 var(--serif); }
.books::before { content: 'Le notti di Valmar'; display: block; }
.books::after { content: ''; position: absolute; left: 20px; right: 14px; bottom: 26px; height: 1px; background: rgba(245, 240, 230, .5); }
.import-card { position: relative; margin-left: auto; width: min(260px, 60%); background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 16px; font-size: 13px; }
.import-card strong { color: var(--ink); }
.bar { height: 5px; background: var(--line); border-radius: 3px; margin: 12px 0; overflow: hidden; }
.bar span { display: block; width: 62%; height: 100%; background: var(--accent); }
.chapters-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.chapters-mini li::before { content: '▤ '; color: #c7d2fe; }

.privacy-cards { display: grid; gap: 12px; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; gap: 4px; }
.mini-card strong { color: var(--ink); font-size: 14.5px; }
.mini-card small { color: var(--muted); font-size: 13px; }
.mini-card.soft { grid-template-columns: auto 1fr; align-items: center; gap: 10px; background: var(--accent-soft); border-color: #e0e7ff; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toggle { width: 34px; height: 20px; border-radius: 10px; background: #d1d5db; position: relative; }
.toggle.on { background: var(--accent); }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.toggle.on::after { left: 17px; }
.pill { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 4px 10px; }

.ai-menu { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 16px; font-size: 13.5px; }
.ai-menu strong { color: var(--ink); }
.spark { color: var(--accent); margin-right: 4px; }
.ai-menu ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; }
.ai-menu li { padding: 7px 10px; border-radius: 6px; color: var(--text); }
.ai-menu li:first-child { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ── FAQ ── */
.faq { max-width: 820px; padding-top: 80px; padding-bottom: 80px; }
.faq h2 { font: 500 clamp(30px, 3vw, 40px)/1.1 var(--serif); text-align: center; margin-bottom: 32px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; color: var(--ink); font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font-size: 22px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* ── CTA ── */
.cta { position: relative; overflow: hidden; color: #e5e7eb; }
.cta-photo { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 15, 40, .92) 0%, rgba(17, 15, 40, .7) 45%, rgba(17, 15, 40, .35) 100%), url(img/cta-desk.webp) center/cover no-repeat, linear-gradient(120deg, #1e1b3a, #3b2f5c 60%, #7c4a2d); }
.cta-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: end; padding-top: 72px; padding-bottom: 72px; }
.cta h2 { color: #fff; font: 500 clamp(30px, 3.2vw, 42px)/1.1 var(--serif); margin-bottom: 12px; }
.cta p { color: #d1d5db; max-width: 32em; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.steps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #a5b4fc; color: #fff; font-weight: 700; flex: none; }
.steps strong { display: block; color: #fff; font-size: 14px; }
.steps small { color: #c7d2fe; font-size: 12.5px; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); }
.footer-in { display: flex; align-items: center; gap: 28px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; margin-left: auto; }
.footer nav a { text-decoration: none; color: var(--muted); font-size: 14px; }
.footer nav a:hover { color: var(--accent); }
.footer small { color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .cta-in { grid-template-columns: 1fr; align-items: start; }
  .steps { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .hero { background: #fff; }
  .hero-photo { inset: auto 0 0 0; height: 46%; background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 30%), url(img/hero-desk.webp) center/cover no-repeat, linear-gradient(160deg, #f3ece1, #e9e1f2); }
  .hero-in { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 40px; }
  .panel-editor { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 42px; }
  .lead { font-size: 16.5px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .checks-row { display: grid; gap: 6px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .panel { padding: 24px 20px; }
  .annotated { padding-top: 0; }
  .note, .arrow { display: none; }
  .mock { grid-template-columns: 30% 1fr; font-size: 8px; }
  .mock .m-panel { display: none; }
  .mock-detail { height: 220px; }
  .io-visual { min-height: 0; }
  .books { display: none; }
  .import-card { width: 100%; }
  .steps li { flex: 1 1 100%; }
  .footer nav { margin-left: 0; }
}
