/* Postnest — sito. Stile sobrio alla Apple: tanto spazio, poche parole, immagini grandi. */
:root {
  --bg: #ffffff;
  --bg2: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --dim: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --green: #1a7f37;
  --green-bg: #e8f6ec;
  --amber: #a15c00;
  --amber-bg: #fff4e0;
  --gray-bg: #ececf0;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg2: #111113;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --dim: #a1a1a6;
    --line: #38383a;
    --accent: #2997ff;
    --accent-hover: #47a6ff;
    --green: #30d158;
    --green-bg: rgba(48, 209, 88, 0.14);
    --amber: #ffb340;
    --amber-bg: rgba(255, 159, 10, 0.14);
    --gray-bg: #2c2c2e;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.47; -webkit-font-smoothing: antialiased; font-size: 17px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* barra in alto */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 16px; }
.logo { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--text); }
.logo:hover { text-decoration: none; }
.menu { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.menu a { color: var(--text); opacity: 0.8; }
.menu a:hover { opacity: 1; text-decoration: none; }
.menu .pill-btn { opacity: 1; }

/* pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; padding: 12px 24px; border-radius: 980px; font-size: 17px; font-weight: 500; border: 0; transition: background .2s; }
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--accent); padding: 12px 8px; }
.btn.secondary:hover { text-decoration: underline; background: transparent; }
.pill-btn { background: var(--accent); color: #fff !important; padding: 5px 13px; border-radius: 980px; font-size: 12px; }
.pill-btn:hover { text-decoration: none; background: var(--accent-hover); }
.btn.disabled { background: var(--gray-bg); color: var(--dim); cursor: default; }

/* hero */
.hero { text-align: center; padding: 88px 0 0; overflow: hidden; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.hero h1 { font-size: clamp(44px, 8vw, 88px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.hero .lead { font-size: clamp(19px, 2.6vw, 26px); line-height: 1.3; color: var(--dim); max-width: 720px; margin: 22px auto 0; letter-spacing: -0.01em; }
.hero .ctas { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.hero .fine { margin-top: 14px; }
.hero-shot { margin: 56px auto 0; max-width: 1080px; border-radius: 16px 16px 0 0; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18); border: 1px solid var(--line); border-bottom: 0; }
.fine { font-size: 13px; color: var(--dim); }

/* sezioni */
section { padding: 110px 0; }
.alt { background: var(--bg2); }
.section-title { text-align: center; font-size: clamp(34px, 5.5vw, 56px); line-height: 1.07; letter-spacing: -0.03em; font-weight: 700; }
.section-lead { text-align: center; color: var(--dim); font-size: clamp(19px, 2.3vw, 22px); line-height: 1.38; max-width: 680px; margin: 18px auto 56px; }

/* 3 passi */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--card); border-radius: var(--radius); padding: 34px 30px; }
.alt .step { background: var(--card); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; margin-bottom: 18px; }
.step h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { color: var(--dim); }

/* storie (testo + immagine) */
.story { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.story.flip { grid-template-columns: 1.25fr 1fr; }
.story.flip .story-text { order: 2; }
.story-text .kicker { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.story-text h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 18px; }
.story-text p { font-size: 19px; color: var(--dim); line-height: 1.45; }
.story-text ul { list-style: none; margin-top: 18px; }
.story-text li { padding: 7px 0; font-size: 17px; border-top: 1px solid var(--line); }
.story-text li:last-child { border-bottom: 1px solid var(--line); }
.shot { border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16); border: 1px solid var(--line); }

/* tessere (bento) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { background: var(--card); border-radius: var(--radius); padding: 34px 32px; grid-column: span 2; display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.tile.wide { grid-column: span 3; }
.tile .big { font-size: clamp(44px, 6vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.tile h3 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.tile p { color: var(--dim); font-size: 16px; }
.tile .glyph { font-size: 40px; line-height: 1; }
.tile.night { background: linear-gradient(160deg, #101a3a, #2a1650); color: #f5f5f7; }
.tile.night p { color: #c7c7d1; }
.timeline { display: flex; gap: 10px; margin-top: auto; font-size: 13px; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.timeline span { background: rgba(255, 255, 255, 0.12); padding: 5px 10px; border-radius: 980px; }

/* social */
.legend { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: -28px 0 40px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 980px; }
.tag.auto { color: var(--green); background: var(--green-bg); }
.tag.soon { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.tag.tap { color: var(--amber); background: var(--amber-bg); }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.net { background: var(--card); border-radius: 14px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.net b { font-weight: 600; font-size: 15px; }
.net .tag { align-self: flex-start; font-size: 11px; padding: 3px 9px; }
.social-note { text-align: center; color: var(--dim); font-size: 14px; margin-top: 28px; }

/* prezzi */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--card); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; border: 1px solid var(--line); }
.plan.hero-plan { border: 2px solid var(--accent); }
.plan .ribbon { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 8px; min-height: 18px; }
.plan h3 { font-size: 22px; letter-spacing: -0.02em; }
.plan .price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin-top: 12px; line-height: 1; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.plan .per { font-size: 14px; color: var(--dim); margin-top: 6px; min-height: 20px; }
.plan ul { list-style: none; margin: 18px 0 22px; flex: 1; }
.plan li { padding: 7px 0; font-size: 15px; border-top: 1px solid var(--line); }
.plan li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 8px; }
.plan .btn { width: 100%; font-size: 15px; padding: 10px 18px; }
.plans-note { text-align: center; color: var(--dim); font-size: 14px; margin-top: 26px; }

/* download */
.downloads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dl { background: var(--card); border-radius: var(--radius); padding: 30px 24px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.dl .os { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.dl p { color: var(--dim); font-size: 14px; flex: 1; }
.dl .btn { font-size: 14px; padding: 9px 18px; margin-top: 10px; }

/* domande */
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 400; font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--dim); margin-top: 12px; font-size: 17px; }

/* chiusura e piè di pagina */
.closing { text-align: center; }
.closing .ctas { display: flex; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
footer { background: var(--bg2); padding: 34px 0 40px; color: var(--dim); font-size: 12px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--dim); margin-right: 18px; }
footer a:hover { color: var(--text); }
footer .fine { font-size: 12px; }

/* pagine legali */
nav.legal-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; max-width: 1080px; margin: 0 auto; }
.legal { max-width: 760px; margin: 0 auto; padding: 32px 22px 80px; }
.legal h1 { font-size: 40px; letter-spacing: -0.03em; margin-bottom: 6px; }
.legal .updated { color: var(--dim); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.02em; }
.legal p, .legal li { font-size: 16px; margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal .summary { background: var(--bg2); border-radius: 16px; padding: 20px 22px; margin-bottom: 26px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14.5px; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 9px 6px; vertical-align: top; }
.legal code { font-size: 14px; background: var(--bg2); padding: 1px 5px; border-radius: 5px; }

@media (max-width: 900px) {
  .plans, .downloads { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.wide { grid-column: span 1; }
  .story, .story.flip { grid-template-columns: 1fr; gap: 32px; }
  .story.flip .story-text { order: 0; }
}
@media (max-width: 640px) {
  section { padding: 76px 0; }
  .hero { padding-top: 56px; }
  .menu .hide-sm { display: none; }
  .steps, .plans, .downloads, .bento { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .legal table { font-size: 13px; }
}
.thanks { text-align: center; }
.thanks ol { text-align: left; max-width: 560px; margin: 20px auto; }
.license-key { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 26px; letter-spacing: 0.06em; background: var(--bg2); border-radius: 14px; padding: 18px; margin: 18px auto; max-width: 520px; user-select: all; }
