/* net.artiko.ai: stesso sistema di artiko.ai e duo.artiko.ai (ink, lime, carta, Manrope). Layout largo. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --paper: #f5f7fa;
  --card: #ffffff;
  --ink: #101827;
  --text: #1a2233;
  --muted: #5b6472;
  --line: #dce1e8;
  --lime: #c5f778;
  --lime-deep: #9fdc3f;
  --on-lime: #101827;
  --band: #101827;
  --band-2: #141a2a;
  --band-text: #f5f7fa;
  --band-muted: #b7bfcc;
  --focus: #2f6fed;
  --shadow: 0 10px 30px rgba(16, 24, 39, .08);
  --shadow-lg: 0 30px 80px rgba(16, 24, 39, .22);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1020;
    --card: #141a2a;
    --ink: #f1f3f7;
    --text: #e8ebf1;
    --muted: #a5adbb;
    --line: #273043;
    --band: #0b1020;
    --band-2: #141a2a;
    --band-text: #f1f3f7;
    --band-muted: #a5adbb;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Manrope", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1360px, 100% - 48px); margin: 0 auto; }
@media (max-width: 720px) { .wrap { width: calc(100% - 32px); } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
em { font-style: normal; font-weight: 700; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; overflow-wrap: anywhere; }
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lead { color: var(--muted); font-size: 19px; max-width: 62ch; }
.muted { color: var(--muted); }

/* Barra in alto */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--band);
  background: color-mix(in srgb, var(--band) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  color: var(--band-text);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.logo img { width: 32px; height: 32px; flex: none; border-radius: 9px; }
.logo .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin-left: 1px; transform: translateY(1px); }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.top nav a { text-decoration: none; color: var(--band-muted); }
.top nav a:hover { color: var(--band-text); }
@media (max-width: 860px) { .top nav { display: none; } .top .wrap { gap: 12px; } .top .btn-sm { margin-left: auto; } }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 16px 26px; font-size: 17px; border-radius: 14px; }
.btn-lime { background: var(--lime); color: var(--on-lime); }
.btn-lime:hover { background: var(--lime-deep); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--band-text); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--text); }
.btn-block { width: 100%; }

/* Bande e sezioni */
.band { background: var(--band); color: var(--band-text); }
.band .kicker { color: var(--lime); }
.band .lead { color: var(--band-muted); }
section { padding: 88px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 18px; }
@media (max-width: 860px) { section { padding: 60px 0; } }

/* Hero: testo centrato e schermata grande sotto */
.hero { padding: 80px 0 0; overflow: hidden; }
.hero-text { max-width: 860px; margin: 0 auto; text-align: center; }
.hero-text .lead { margin: 20px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--band-muted); }
.hero-shot { margin: 56px auto 0; max-width: 1360px; position: relative; }
.hero-shot::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; }
.hero-shot .shot { border-radius: 18px 18px 0 0; border-bottom: 0; box-shadow: var(--shadow-lg); }
.hero-shot .shot img { display: block; }
@media (max-width: 860px) { .hero { padding-top: 52px; } .hero-shot { margin-top: 36px; } }

figure { margin: 0; }
figure.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
figure.shot img { width: 100%; }
figure.shot figcaption { padding: 10px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.band figure.shot { border-color: rgba(255,255,255,.14); background: var(--band-2); }
.band figure.shot figcaption { color: var(--band-muted); border-color: rgba(255,255,255,.1); }

/* Griglie e schede */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  padding: 28px 26px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line);
  min-width: 0;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--line); background: color-mix(in srgb, var(--lime) 28%, var(--card));
  color: var(--ink); margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }

/* Vetrina: testo + schermata, alternati */
.show { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; padding: 36px 0; }
.show.rev { grid-template-columns: 1.2fr .8fr; }
.show.rev .text { order: 2; }
.show .text { max-width: 520px; }
.show h2 { margin-bottom: 14px; font-size: clamp(24px, 2.8vw, 32px); }
.show .lead { font-size: 18px; margin-bottom: 22px; }
.show > * { min-width: 0; }
@media (max-width: 960px) {
  .show, .show.rev { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
  .show.rev .text { order: 0; }
}

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--lime);
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: 9px; width: 9px; height: 5px;
  border-left: 2.5px solid var(--on-lime); border-bottom: 2.5px solid var(--on-lime); transform: rotate(-45deg);
}

/* Sfondi della webcam */
.bgs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 8px; }
.bgs figure { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: var(--band-2); }
.bgs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bgs figcaption { padding: 8px 12px; font-size: 13px; font-weight: 700; color: var(--band-text); }
.bgs figure.blur img { filter: blur(6px) saturate(.9); transform: scale(1.08); }
.bgs figure.blur-strong img { filter: blur(14px) saturate(.8); transform: scale(1.12); }
@media (max-width: 960px) { .bgs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .bgs { grid-template-columns: repeat(2, 1fr); } }

/* Passaggi */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 22px; right: 22px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: var(--on-lime); font-weight: 800; font-size: 15px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }

/* Download */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.dl { border: 1px solid var(--line); border-radius: 22px; padding: 30px; background: var(--paper); }
.dl.detected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.dl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.dl-head svg { width: 28px; height: 28px; }
.dl-head h3 { margin: 0; font-size: 26px; letter-spacing: -.015em; }
.badge { display: none; margin-left: auto; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--lime); color: var(--on-lime); }
.dl.detected .badge { display: inline-block; }
.dl .buttons { display: grid; gap: 10px; }
.hint { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.dl ol { margin: 22px 0 0; padding-left: 0; list-style: none; counter-reset: n; }
.dl li { position: relative; padding-left: 36px; margin-bottom: 12px; }
.dl li::before {
  counter-increment: n; content: counter(n);
  position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.dl-note { margin-top: 24px; padding: 16px 20px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.dl-note em { color: var(--text); }
@media (max-width: 860px) { .dl-grid { grid-template-columns: 1fr; } }

/* Prezzo */
.price-box { padding: 30px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 14px; }
.price-box .amount { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.price-box .amount small { display: block; font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.price-box p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 18px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--muted); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Riga di chiusura */
.cta-band { padding: 64px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); }

/* Piè di pagina */
.foot { padding: 40px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; }
.foot .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.foot .brand img { width: 26px; height: 26px; border-radius: 7px; }
.foot .mark-lime { display: none; }
@media (prefers-color-scheme: dark) { .foot .mark-ink { display: none; } .foot .mark-lime { display: block; } }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Pagina Licenze di terze parti */
.narrow { width: min(860px, 100% - 48px); margin: 0 auto; }
.page-head { padding: 64px 0 28px; }
.page-head h1 { font-size: clamp(30px, 4.5vw, 46px); }
section.tight { padding: 24px 0 80px; }
.lic { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 10px; }
.lic summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; font-weight: 700; }
.lic summary::-webkit-details-marker { display: none; }
.lic summary small { color: var(--muted); font-weight: 500; margin-left: 8px; }
.lic .tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--lime); color: var(--on-lime); white-space: nowrap; }
.lic-body { padding: 0 18px 16px; font-size: 15px; color: var(--muted); }
.lic-body p { margin: 6px 0; overflow-wrap: anywhere; }
.lic-body pre { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.5; max-height: 320px; overflow: auto; padding: 12px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); color: var(--text); margin: 10px 0 0; }
