/* Brisk Tools – foglio di stile unico, niente librerie esterne */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(fonts/inter-700.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url(fonts/inter-800.woff2) format("woff2"); }

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --fg: #0b0d12;
  --fg-2: #3f4450;
  --muted: #6b7180;
  --line: #e7e8ec;
  --card: #ffffff;
  --accent: #111827;
  --accent-soft: #f1f2f4;
  --pp: #0f766e;
  --pp-soft: #e6f7f4;
  --st: #7c3aed;
  --st-soft: #f2edfe;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .14);
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c10; --bg-soft: #111319; --fg: #f3f4f6; --fg-2: #c9ccd4; --muted: #8b90a0;
    --line: #22252e; --card: #13151b; --accent: #f3f4f6; --accent-soft: #1b1e26;
    --pp: #2dd4bf; --pp-soft: #0d2623; --st: #a78bfa; --st-soft: #1d1733;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* --- navigazione --- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; font-size: 18px; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--fg); display: grid; place-items: center; }
.brand-mark span { width: 10px; height: 10px; border-radius: 3px; background: var(--bg); transform: rotate(45deg); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--fg-2); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { background: var(--accent-soft); color: var(--fg); }
@media (max-width: 640px) { .nav-links a.hide-sm { display: none; } }

/* --- bottoni --- */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--fg); color: var(--bg); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--card); }
.btn-pp { background: var(--pp); color: #fff; }
.btn-st { background: var(--st); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-pp, .btn-st { color: #0b0c10; } }
.btn svg { width: 18px; height: 18px; }

/* --- hero --- */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 620px; background: radial-gradient(600px 300px at 25% 40%, var(--pp-soft), transparent 70%), radial-gradient(560px 300px at 75% 30%, var(--st-soft), transparent 70%); z-index: -1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--fg-2); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px color-mix(in srgb, #22c55e 20%, transparent); }
h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.04; letter-spacing: -.035em; margin: 22px 0 18px; font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; }
h3 { font-size: 20px; letter-spacing: -.015em; margin: 0 0 8px; font-weight: 700; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--fg-2); max-width: 640px; margin: 0 0 32px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.center .actions { justify-content: center; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }
.grad { background: linear-gradient(90deg, var(--pp), var(--st)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --- sezioni --- */
section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .g2, .g3 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--fg-2); margin: 0; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--accent-soft); }
.feature .ico svg { width: 22px; height: 22px; }
.pp .ico { background: var(--pp-soft); color: var(--pp); }
.st .ico { background: var(--st-soft); color: var(--st); }

/* card prodotto nella home */
.product { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 32px; text-decoration: none; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product.pp:hover { border-color: color-mix(in srgb, var(--pp) 40%, var(--line)); }
.product.st:hover { border-color: color-mix(in srgb, var(--st) 40%, var(--line)); }
.product .head { display: flex; align-items: center; gap: 14px; }
.product .head img { width: 52px; height: 52px; border-radius: 14px; }
.product .head b { font-size: 22px; letter-spacing: -.02em; }
.product .head small { display: block; color: var(--muted); font-size: 14px; font-weight: 500; }
.product .more { margin-top: auto; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.product.pp .more { color: var(--pp); }
.product.st .more { color: var(--st); }
.product .shot { border-radius: 12px; border: 1px solid var(--line); margin: 6px -8px -40px; box-shadow: var(--shadow); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--fg-2); }

/* --- pagina prodotto --- */
.p-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .p-hero { grid-template-columns: 1fr; } }
.p-hero .logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; }
.p-hero .logo img { width: 44px; height: 44px; border-radius: 12px; }
.pp-theme .hero::before { background: radial-gradient(640px 320px at 70% 40%, var(--pp-soft), transparent 70%); }
.st-theme .hero::before { background: radial-gradient(640px 320px at 70% 40%, var(--st-soft), transparent 70%); }

/* finestra finta animata */
.window { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-size: 14px; }
.window .bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.window .bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.window .body { padding: 20px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

.steps { counter-reset: s; display: grid; gap: 16px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step::before { counter-increment: s; content: counter(s); flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--fg); color: var(--bg); }
.step p { margin: 4px 0 0; color: var(--fg-2); }

/* prezzi */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 32px; }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 4px; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; color: var(--fg-2); }
.plan li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%2322c55e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.plan.pro { border-width: 2px; }
.pp-theme .plan.pro { border-color: var(--pp); }
.st-theme .plan.pro { border-color: var(--st); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--fg-2); margin: 12px 0 0; }

/* articoli (guide) */
.article { max-width: 720px; margin: 0 auto; padding: 64px 24px 40px; }
.article h1 { font-size: clamp(34px, 5vw, 48px); }
.article h2 { font-size: 26px; margin-top: 44px; }
.article p, .article li { color: var(--fg-2); }
.article ol, .article ul { padding-left: 22px; }
.article li { margin: 6px 0; }
.article code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; }
.article .meta { color: var(--muted); font-size: 15px; }
.callout { border: 1px solid var(--line); background: var(--bg-soft); border-radius: 16px; padding: 22px 24px; margin: 32px 0; display: flex; gap: 18px; align-items: center; }
.callout img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.callout p { margin: 0; }
@media (max-width: 560px) { .callout { flex-direction: column; align-items: flex-start; } }
.guide-list a { display: flex; justify-content: space-between; gap: 16px; align-items: center; text-decoration: none; padding: 22px 24px; }
.guide-list a span { color: var(--muted); font-size: 14px; }
.guide-list a:hover b { text-decoration: underline; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

/* animazioni all'ingresso */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* --- demo animate --- */
.demo .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.demo .top b { font-size: 15px; }
.demo .pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; }
.demo .chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 64px; align-content: flex-start; }
.demo .chip { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-2); opacity: 0; transform: scale(.8); transition: all .25s cubic-bezier(.2,.9,.3,1.4); }
.demo .chip.on { opacity: 1; transform: none; }
.demo .found { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.demo .found .count { font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.demo .progress { height: 6px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; margin: 16px 0 12px; }
.demo .progress i { display: block; height: 100%; width: 0; background: var(--pp); border-radius: 99px; transition: width .05s linear; }
.demo .done { font-size: 13px; font-weight: 600; color: var(--pp); opacity: 0; transition: opacity .3s; margin: 0 0 10px; }
.demo .zip { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; }
.demo .zip b { font-size: 13px; display: flex; gap: 8px; align-items: center; }
.demo .tree { list-style: none; margin: 8px 0 0; padding: 0 0 0 4px; font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--fg-2); min-height: 118px; }
.demo .tree li { opacity: 0; transform: translateX(-8px); transition: all .3s ease; padding: 1px 0; }
.demo .tree li::before { content: "└ "; color: var(--muted); }
.demo .tree li.on { opacity: 1; transform: none; }
.st-demo .mail { border: 2px solid var(--st); border-radius: 12px; padding: 14px 16px; line-height: 1.7; color: var(--fg-2); min-height: 150px; }
.st-demo .w { display: inline-block; border-radius: 4px; padding: 0 2px; transition: background .2s, color .2s, transform .25s; }
.st-demo .w.hit { background: var(--st-soft); color: var(--st); font-weight: 600; }
.st-demo .w.flip { transform: rotateX(360deg); }
.st-demo .w.new { background: color-mix(in srgb, #22c55e 18%, transparent); color: #16a34a; }
.st-demo .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.st-demo .field { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.st-demo .field small { display: block; color: var(--muted); font-size: 11px; }
.st-demo .field span { font-weight: 600; min-height: 1.4em; display: inline-block; }
.st-demo .field span::after { content: "|"; margin-left: 1px; color: var(--st); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.st-demo .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.st-demo .count { font-size: 13px; font-weight: 700; }
.st-demo .go { background: var(--st); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 9px; transition: transform .1s; }
.st-demo .go.press { transform: scale(.94); }

@media (max-width: 560px) { .card, .product, .plan { padding: 22px; } section { padding: 64px 0; } .hero { padding: 64px 0 56px; } }
/* ChefCard in evidenza nella home */
.cc-feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; margin-bottom: 24px; background: linear-gradient(135deg, #FFF6EE, #FDE8DE); border-color: #F3D2C2; color: #1F1B16; padding-bottom: 0; }
.cc-feature .cc-copy { display: flex; flex-direction: column; gap: 18px; padding-bottom: 32px; }
.cc-feature p { color: #5E564C; }
.cc-feature .more { color: #B8401A; }
.cc-feature .tag { background: #fff; color: #B8401A; border-color: #F3D2C2; }
.cc-feature .head small { color: #8A8073; }
.cc-feature .cc-shot { width: 260px; justify-self: center; align-self: end; height: 300px; object-fit: cover; object-position: top; border-radius: 18px 18px 0 0; box-shadow: 0 30px 60px -20px rgba(150,50,10,.45); transform: rotate(-3deg) translateY(12px); transition: transform .4s cubic-bezier(.25,1.35,.4,1); }
.cc-feature:hover .cc-shot { transform: rotate(0) translateY(0); }
.cc-feature:hover { border-color: #E4572E; }
@media (max-width: 760px) { .cc-feature { grid-template-columns: 1fr; } }
