/* =========================================================
   33% · trentatrepercento.com — design system
   Derivato da richiami.trentatrepercento.com
   ========================================================= */
:root {
  --brand: #2e7d32;
  --brand-600: #276c2b;
  --brand-700: #1b5e20;
  --brand-900: #1a3d1a;
  --brand-100: #e8f5e9;
  --brand-50: #f1f8e9;
  --lime: #84cc16;
  --lime-soft: #d6f5a3;
  --sky: #1e88e5;
  --accent: #f9a825;
  --accent-600: #f29100;
  --danger: #c62828;

  --bg: #f5f7f3;
  --surface: #ffffff;
  --surface-2: #eef3ec;
  --text: #13221a;
  --muted: #5d6d63;
  --border: #e1e8df;
  --shadow-sm: 0 1px 2px rgba(19, 34, 26, .06), 0 1px 1px rgba(19, 34, 26, .04);
  --shadow: 0 10px 30px -12px rgba(27, 94, 32, .25), 0 2px 6px rgba(19, 34, 26, .05);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 68px;
  --tabbar-h: 64px;

  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 46, 125, 50;
  --bs-link-hover-color: var(--brand-700);
  --bs-link-hover-color-rgb: 27, 94, 32;
  --bs-border-color: var(--border);
  --bs-primary: var(--brand);
  --bs-primary-rgb: 46, 125, 50;
}

[data-bs-theme="dark"] {
  --bg: #0c130f;
  --surface: #131d17;
  --surface-2: #1a2620;
  --text: #e5eee8;
  --muted: #9aab9f;
  --border: #25332b;
  --brand-100: #173321;
  --brand-50: #13261a;
  --danger: #ef5350;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-link-color: #81c784;
  --bs-link-color-rgb: 129, 199, 132;
  --bs-link-hover-color: #a5d6a7;
  --bs-border-color: var(--border);
  --bs-secondary-color: var(--muted);
}

html { scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; }
body {
  overflow-x: clip;
  font-family: var(--bs-body-font-family);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.app-main { flex: 1 0 auto; padding-bottom: 2.5rem; }
a { text-underline-offset: 3px; }
.text-brand { color: var(--brand) !important; }
.text-body-secondary { color: var(--muted) !important; }
.text-danger-soft { color: var(--danger) !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; }
.btn-brand { --bs-btn-color: #fff; --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-700); --bs-btn-hover-border-color: var(--brand-700); --bs-btn-active-bg: var(--brand-900); --bs-btn-active-color: #fff; }
.btn-outline-brand { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand-700); --bs-btn-active-color: #fff; }
[data-bs-theme="dark"] .btn-outline-brand { --bs-btn-color: #81c784; --bs-btn-border-color: #4f8f53; }
.btn-accent { --bs-btn-color: #1a1a1a; --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: var(--accent-600); --bs-btn-hover-border-color: var(--accent-600); --bs-btn-hover-color: #111; --bs-btn-active-bg: var(--accent-600); }
.btn-glass { --bs-btn-color: #fff; --bs-btn-bg: rgba(255, 255, 255, .12); --bs-btn-border-color: rgba(255, 255, 255, .3); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .22); --bs-btn-hover-border-color: rgba(255, 255, 255, .45); --bs-btn-active-bg: rgba(255, 255, 255, .28); --bs-btn-active-color: #fff; }
.btn-pill { border-radius: 999px; padding: .7rem 1.5rem; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.1rem; text-decoration: none;
  transition: background .15s, color .15s;
}
.icon-btn:hover, .icon-btn.active { background: var(--brand-100); color: var(--brand-700); }
[data-bs-theme="dark"] .icon-btn:hover, [data-bs-theme="dark"] .icon-btn.active { color: #a5d6a7; }

/* ---------- Header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 1030; height: var(--header-h);
  display: flex; align-items: center; padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-logo { border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-sub { font-size: .78rem; color: var(--muted); font-weight: 600; }
.brand-sub b { color: var(--brand); }
.main-nav { gap: .25rem; margin-left: 1.25rem; }
.main-nav a {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 999px;
  color: var(--muted); font-weight: 600; font-size: .93rem; text-decoration: none; transition: background .15s, color .15s;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.active { color: var(--brand-700); background: var(--brand-100); }
[data-bs-theme="dark"] .main-nav a.active { color: #a5d6a7; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 4rem 0 4.25rem;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(132, 204, 22, .35), transparent 60%),
    radial-gradient(700px 380px at -10% 120%, rgba(30, 136, 229, .30), transparent 60%),
    linear-gradient(135deg, var(--brand-700) 0%, var(--brand) 55%, #3c8f2f 100%);
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 46px solid rgba(255, 255, 255, .06); pointer-events: none;
}
.hero-sm { padding: 3rem 0 3.25rem; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); padding: .35rem .8rem; border-radius: 999px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #b9f6ca; box-shadow: 0 0 0 0 rgba(185, 246, 202, .8); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(185, 246, 202, 0); } 100% { box-shadow: 0 0 0 0 rgba(185, 246, 202, 0); } }
.hero-title { font-weight: 800; font-size: clamp(2.1rem, 5.4vw, 3.6rem); letter-spacing: -.035em; line-height: 1.05; margin: 1rem 0 .9rem; }
.hero-title span { color: var(--lime-soft); }
.hero-lead { font-size: 1.12rem; opacity: .92; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero-note { font-size: .85rem; opacity: .8; margin: 1rem 0 0; }
.hero-logo { width: min(320px, 70%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(2deg); } }

.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.kpi {
  display: flex; flex-direction: column; gap: .15rem; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: #fff; text-decoration: none;
  backdrop-filter: blur(6px);
}
.kpi-main { grid-column: 1 / -1; background: #fff; color: var(--brand-900); }
.kpi-label { font-size: .82rem; font-weight: 600; opacity: .85; }
.kpi-value { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.kpi-main .kpi-value { font-size: 3rem; color: var(--brand); }
.kpi-delta { font-size: .82rem; font-weight: 700; }
.kpi-delta.up { color: var(--danger); }
.kpi-delta.down { color: var(--brand); }

/* ---------- Chips ---------- */
.chip-scroller { display: flex; gap: .5rem; overflow-x: auto; padding: 1.25rem 0 .25rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chip-scroller::-webkit-scrollbar { display: none; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  --chip: var(--brand);
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .5rem .95rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .88rem;
  text-decoration: none; box-shadow: var(--shadow-sm); transition: all .15s;
}
.chip i { color: var(--chip); }
.chip:hover { border-color: var(--chip); color: var(--text); }
.chip.active { background: var(--chip); border-color: var(--chip); color: #fff; }
.chip.active i { color: #fff; }

/* ---------- Sections ---------- */
.section { margin-top: 3.5rem; }
.section-tight { margin-top: 2rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-head h2 { font-weight: 800; letter-spacing: -.02em; margin: 0; }
.section-link { font-weight: 700; text-decoration: none; font-size: .92rem; white-space: nowrap; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .5rem; }
[data-bs-theme="dark"] .eyebrow { color: #81c784; }
.section-title { font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.12; margin-bottom: .6rem; }
.section-title span { color: var(--brand); }
[data-bs-theme="dark"] .section-title span { color: #81c784; }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 680px; }
.section-center { text-align: center; }
.section-center .section-lead { margin-inline: auto; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow-sm); }
.panel-title { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .25rem; }
.panel-sub { color: var(--muted); font-size: .9rem; margin-bottom: 0; }

/* ---------- Feature card ---------- */
.fcard {
  position: relative; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
  display: flex; flex-direction: column; gap: .4rem;
}
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 25%, var(--border)); }
.fcard h3 { font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; margin: .35rem 0 0; }
.fcard p { color: var(--muted); font-size: .93rem; margin: 0; }
.fcard .fcard-foot { margin-top: auto; padding-top: .6rem; font-size: .85rem; font-weight: 700; color: var(--brand); }
[data-bs-theme="dark"] .fcard .fcard-foot { color: #81c784; }
.ficon {
  --ic: var(--brand);
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0;
  color: var(--ic); background: color-mix(in srgb, var(--ic) 12%, var(--surface));
}
.ficon-accent { --ic: #d48806; } .ficon-sky { --ic: var(--sky); } .ficon-red { --ic: #e53935; } .ficon-violet { --ic: #8e24aa; } .ficon-teal { --ic: #00897b; }
.ficon-sm { width: 40px; height: 40px; border-radius: 11px; font-size: 1.15rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 1rem; right: 1rem;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800;
  background: var(--brand-100); color: var(--brand-700);
}
[data-bs-theme="dark"] .step::before { color: #a5d6a7; }
.step h3 { font-size: 1rem; font-weight: 800; margin: .9rem 0 .2rem; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Check list / tags ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list i { color: var(--brand); flex-shrink: 0; margin-top: .1rem; }
.check-list.muted-list i { color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}
.tag-accent { color: #9a6200; background: #fff4d6; border-color: #ffe39a; }
[data-bs-theme="dark"] .tag-accent { background: #3a2f12; color: #ffd54f; border-color: #5a4a1c; }
.tag-solid { background: var(--brand); color: #fff; border-color: var(--brand); }
.data-tags { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Callout ---------- */
.callout {
  display: flex; gap: 1rem; align-items: center; padding: 1.2rem 1.35rem; border-radius: var(--radius);
  background: var(--brand-50); border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
}
.callout strong { display: block; font-size: 1.05rem; }
.callout span { color: var(--muted); font-size: .92rem; }
.callout-accent { background: #fff8e1; border-color: #ffe39a; }
[data-bs-theme="dark"] .callout-accent { background: #2a2312; border-color: #4a3d1a; }

/* ---------- Promo (CTA) ---------- */
.promo { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.35rem; border-radius: var(--radius); text-decoration: none; transition: transform .15s; height: 100%; }
.promo:hover { transform: translateY(-2px); }
.promo strong { display: block; font-size: 1.05rem; }
.promo span { font-size: .88rem; opacity: .9; }
.promo-icon { font-size: 1.6rem; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.promo-brand { background: linear-gradient(135deg, var(--brand-700), var(--brand)); color: #fff; }
.promo-brand:hover { color: #fff; }
.promo-brand .promo-icon { background: rgba(255, 255, 255, .16); }
.promo-light { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.promo-light:hover { color: var(--text); }
.promo-light .promo-icon { background: #fff4d6; color: #b07a00; }
[data-bs-theme="dark"] .promo-light .promo-icon { background: #3a2f12; color: #ffd54f; }

.cta-band {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); color: #fff; padding: 2.5rem 2rem;
  background:
    radial-gradient(600px 260px at 90% 0%, rgba(132, 204, 22, .35), transparent 60%),
    linear-gradient(135deg, var(--brand-700), var(--brand));
}
.cta-band h2 { font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cta-band p { opacity: .9; max-width: 560px; }
.cta-band .cta-logo { position: absolute; right: -30px; bottom: -40px; width: 220px; opacity: .2; pointer-events: none; }

/* ---------- Phone mock (scan) ---------- */
.phone {
  width: 300px; max-width: 100%; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: 34px; padding: 14px; box-shadow: var(--shadow);
}
.phone-screen { background: var(--bg); border-radius: 24px; overflow: hidden; }
.phone-top { background: linear-gradient(135deg, var(--brand-700), var(--brand)); color: #fff; padding: 1rem 1rem 1.1rem; }
.phone-top small { opacity: .8; font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.phone-top h4 { font-weight: 800; font-size: 1.15rem; margin: .2rem 0 0; letter-spacing: -.01em; }
.phone-top p { font-size: .78rem; opacity: .85; margin: 0; }
.phone-tabs { display: flex; gap: .25rem; padding: .6rem; }
.phone-tabs span { flex: 1; text-align: center; font-size: .75rem; font-weight: 700; padding: .35rem 0; border-radius: 999px; color: var(--muted); }
.phone-tabs span.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.phone-body { padding: 0 .75rem .9rem; display: grid; gap: .5rem; }
.phone-row { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .6rem .75rem; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; }
.phone-row b { font-weight: 800; }
.phone-alert { background: #fff4d6; color: #8a5a00; border-radius: 12px; padding: .6rem .75rem; font-size: .8rem; font-weight: 700; display: flex; gap: .4rem; align-items: center; }
[data-bs-theme="dark"] .phone-alert { background: #3a2f12; color: #ffd54f; }
.annot { display: grid; gap: .75rem; }
.annot li { list-style: none; }

/* ---------- Price compare ---------- */
.compare { display: grid; gap: .6rem; }
.compare-row { display: grid; grid-template-columns: 7rem 1fr auto; gap: .8rem; align-items: center; font-size: .92rem; }
.compare-row .bar-track { height: 12px; }
.bar-track { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--lime)); }
.bar-fill-alt { background: linear-gradient(90deg, var(--sky), #4fc3f7); }
.bar-fill-warn { background: linear-gradient(90deg, #ef6c00, var(--accent)); }
.big-num { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--brand); }
[data-bs-theme="dark"] .big-num { color: #81c784; }

/* ---------- Cart ---------- */
.cart-list { list-style: none; padding: 0; margin: 0; }
.cart-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; font-size: .95rem; }
.cart-list li + li { border-top: 1px dashed var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .8rem; margin-top: .4rem; border-top: 2px solid var(--border); font-weight: 800; }
.cart-total b { font-size: 1.4rem; }
.winner {
  text-align: center; border-radius: var(--radius); padding: 1.5rem; height: 100%;
  background: linear-gradient(135deg, var(--brand-700), var(--brand)); color: #fff; display: flex; flex-direction: column; justify-content: center;
}
.winner .trophy { font-size: 2.4rem; }
.winner h3 { font-weight: 800; font-size: 1.8rem; margin: .25rem 0; }

/* ---------- Stats ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.stat-label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand); line-height: 1.15; }
[data-bs-theme="dark"] .stat-value { color: #81c784; }
.stat-sub { font-size: .82rem; color: var(--muted); }
.score { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; font-weight: 800; font-size: 1.4rem; color: #fff; background: #85bb2f; }
.score-a { background: #038141; }

/* ---------- AI chat ---------- */
.chat { display: grid; gap: .55rem; }
.bubble { max-width: 90%; padding: .7rem 1rem; border-radius: 18px 18px 18px 6px; background: var(--surface-2); font-size: .93rem; font-weight: 600; }
.bubble-me { justify-self: end; border-radius: 18px 18px 6px 18px; background: var(--brand); color: #fff; }

/* ---------- Compare columns (intention vs real) ---------- */
.vs-card { height: 100%; border-radius: var(--radius); padding: 1.4rem; border: 1px solid var(--border); background: var(--surface); }
.vs-card.vs-good { border: 2px solid var(--brand); background: var(--brand-50); }
.vs-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .15rem; }
.vs-card .vs-sub { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.vs-card .vs-foot { margin-top: 1rem; font-weight: 800; font-size: .9rem; }

/* ---------- Share of wallet ---------- */
.wallet { display: flex; height: 64px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.wallet > div { display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; font-weight: 800; font-size: .85rem; line-height: 1.15; }
.wallet > div span { font-size: 1.2rem; }
.w-a { background: var(--sky); }
.w-b { background: #e53935; }
.w-c { background: #ef6c00; }
.wallet.blind > div:not(.w-a) { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 8px, var(--border) 8px, var(--border) 16px); color: var(--muted); }

/* ---------- Moat ---------- */
.moat { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 1rem; align-items: stretch; }
.moat-card { border-radius: var(--radius); padding: 1.3rem; border: 1px solid var(--border); background: var(--surface); text-align: center; }
.moat-card .emoji { font-size: 2rem; }
.moat-card h3 { font-weight: 800; font-size: 1.1rem; margin: .4rem 0 .2rem; }
.moat-card p { font-size: .88rem; color: var(--muted); margin: 0; }
.moat-card .no { color: var(--danger); font-weight: 700; font-size: .85rem; margin-top: .5rem; }
.moat-card.moat-33 { background: linear-gradient(135deg, var(--brand-700), var(--brand)); color: #fff; border: 0; }
.moat-card.moat-33 p { color: rgba(255, 255, 255, .85); }

/* ---------- Pricing / revenue ---------- */
.rev-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--brand); }
[data-bs-theme="dark"] .rev-value { color: #81c784; }

/* ---------- Status pill ---------- */
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .22rem .55rem; border-radius: 6px; }
.status-on { background: var(--brand-100); color: var(--brand-700); }
[data-bs-theme="dark"] .status-on { color: #a5d6a7; }
.status-on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.status-test { background: #fff4d6; color: #8a5a00; }
[data-bs-theme="dark"] .status-test { background: #3a2f12; color: #ffd54f; }

/* ---------- Team ---------- */
.member { text-align: center; }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto .8rem; display: grid; place-items: center;
  font-weight: 800; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--brand-700), var(--lime));
}
.member h3 { margin-top: 0; }
.member .role { font-size: .8rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
[data-bs-theme="dark"] .member .role { color: #81c784; }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: 14px; border: 1px solid var(--border); background-color: var(--surface); color: var(--text); padding: .7rem 1rem; font-weight: 500;
}
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); background-color: var(--surface); color: var(--text); }
.form-label { font-weight: 700; font-size: .9rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); border-color: var(--brand); }
.seg-tabs { display: inline-flex; gap: .25rem; background: var(--surface-2); padding: .3rem; border-radius: 999px; margin-bottom: 1rem; border: 1px solid var(--border); }
.seg-tabs button { border: 0; background: transparent; color: var(--muted); font-weight: 700; padding: .5rem 1rem; border-radius: 999px; font-size: .9rem; }
.seg-tabs button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
.app-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 2.25rem 0 2rem; margin-top: 3rem; }
.app-footer a { text-decoration: none; }
.app-footer li { margin-bottom: .35rem; }
.footer-title { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .6rem; }

/* ---------- Mobile tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--border);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; text-decoration: none; color: var(--muted); font-size: .68rem; font-weight: 700; }
.tab-icon { position: relative; font-size: 1.3rem; width: 52px; height: 30px; display: grid; place-items: center; border-radius: 99px; transition: background .15s; }
.tabbar a.active { color: var(--brand-700); }
[data-bs-theme="dark"] .tabbar a.active { color: #a5d6a7; }
.tabbar a.active .tab-icon { background: var(--brand-100); }
.app-toasts { bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 1090; }
.app-toasts .toast { background: var(--text); color: var(--bg); border: 0; border-radius: 999px; box-shadow: var(--shadow); }
.app-toasts .toast-body { padding: .7rem 1.2rem; font-weight: 600; display: flex; gap: .5rem; align-items: center; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .app-toasts { bottom: calc(var(--tabbar-h) + 1rem + env(safe-area-inset-bottom)); }
  .app-footer { margin-top: 2rem; }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moat { grid-template-columns: 1fr 1fr; }
  .moat-card.moat-33 { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  :root { --header-h: 60px; }
  .container-xl { --bs-gutter-x: 2rem; }
  .brand-logo { width: 38px; height: 38px; }
  .hero { padding: 2.5rem 0 2.75rem; }
  .kpi-value { font-size: 1.7rem; }
  .kpi-main .kpi-value { font-size: 2.4rem; }
  .stat-value { font-size: 1.8rem; }
  .section { margin-top: 2.5rem; }
  .steps, .steps-3 { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 5.5rem 1fr auto; }
  .cta-band { padding: 2rem 1.4rem; }
}
@media (max-width: 575.98px) {
  .kpi { padding: .85rem .9rem; }
  .kpi-value { font-size: 1.45rem; }
  .kpi-label { font-size: .74rem; }
  .moat { grid-template-columns: 1fr; }
  .wallet > div { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.chip:has(input:checked) { background: var(--chip); border-color: var(--chip); color: #fff; }
.chip input { cursor: pointer; }
.seg-tabs[data-target] { display: flex; max-width: 100%; }
.seg-tabs[data-target] button { flex: 1; white-space: nowrap; }
@media (max-width: 575.98px) {
  .seg-tabs[data-target] button { padding: .5rem .4rem; font-size: .82rem; }
  .seg-tabs[data-target] button i { display: none; }
}

/* =========================================================
   v2 · sito orientato alle app (app.trentatrepercento.com)
   ========================================================= */
.header-actions .btn { white-space: nowrap; }
.btn-ghost { --bs-btn-color: var(--text); --bs-btn-bg: transparent; --bs-btn-border-color: var(--border); --bs-btn-hover-color: var(--brand-700); --bs-btn-hover-bg: var(--brand-100); --bs-btn-hover-border-color: var(--brand-100); }
[data-bs-theme="dark"] .btn-ghost { --bs-btn-hover-color: #a5d6a7; }
.btn-lg.btn-pill { padding: .85rem 1.7rem; font-size: 1.05rem; }

/* Device frames con screenshot reali */
.device {
  position: relative; width: 280px; max-width: 100%; aspect-ratio: 390 / 844; margin: 0 auto;
  border-radius: 40px; padding: 10px; background: #0f1a13; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.device img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; background: #f5f7f3; }
.device::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 76px; height: 20px; border-radius: 999px; background: #0f1a13; z-index: 2; }
.device-sm { width: 220px; border-radius: 32px; padding: 8px; }
.device-sm img { border-radius: 25px; }
.device-sm::before { top: 14px; width: 60px; height: 16px; }
.device-tilt-l { transform: rotate(-6deg) translateY(24px); }
.device-tilt-r { transform: rotate(6deg) translateY(24px); }
.hero-devices { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.hero-devices .device-sm { margin: 0 -40px; z-index: 1; opacity: .95; }
.hero-devices .device:not(.device-sm) { z-index: 2; }

.browser { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: .45rem; padding: .6rem .9rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; display: inline-block; }
.browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-url { margin-left: .6rem; flex: 1; max-width: 360px; font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .2rem .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { display: block; width: 100%; height: auto; }

/* Trust strip */
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.4rem; font-size: .88rem; font-weight: 600; opacity: .92; }
.trust span { display: inline-flex; align-items: center; gap: .4rem; }

/* Righe funzione alternate */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.feature + .feature { margin-top: 4rem; }
.feature.flip .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; padding: 1.5rem 0; border-radius: calc(var(--radius) + 8px);
  background: radial-gradient(400px 300px at 50% 40%, color-mix(in srgb, var(--lime) 22%, transparent), transparent 70%), var(--brand-50); }
.feature-text .check-list { margin-top: 1.1rem; }
.feature-text .btn { margin-top: 1.4rem; }

/* Stepper numerato orizzontale */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: how; }
.how-step { position: relative; padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.how-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--brand); color: #fff; margin-bottom: .8rem; }
.how-step h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: .3rem; }
.how-step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Piattaforme */
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.platform { padding: 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.platform h3 { font-size: 1rem; font-weight: 800; margin: .6rem 0 .3rem; }
.platform ol { padding-left: 1.1rem; margin: 0; color: var(--muted); font-size: .9rem; }

/* FAQ */
.faq .accordion-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm) !important; overflow: hidden; }
.faq .accordion-item + .accordion-item { margin-top: .6rem; }
.faq .accordion-button { font-weight: 700; background: var(--surface); color: var(--text); box-shadow: none; padding: 1rem 1.2rem; }
.faq .accordion-button:not(.collapsed) { color: var(--brand-700); background: var(--brand-50); }
[data-bs-theme="dark"] .faq .accordion-button:not(.collapsed) { color: #a5d6a7; }
.faq .accordion-button:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.faq .accordion-body { color: var(--muted); padding: .2rem 1.2rem 1.1rem; }
.faq .accordion-button::after { filter: grayscale(1); }

/* Split CTA consumatore / azienda / investitore */
.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

/* Tabbar con pulsante centrale (come nell'app) */
.tabbar a.tab-cta .tab-icon { width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 10px 22px -8px rgba(27, 94, 32, .7); border: 4px solid var(--bg); }
.tabbar a.tab-cta { color: var(--brand-700); }
[data-bs-theme="dark"] .tabbar a.tab-cta { color: #a5d6a7; }

@media (max-width: 991.98px) {
  .feature { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature.flip .feature-media { order: 0; }
  .feature + .feature { margin-top: 3rem; }
  .platforms { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .how { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .device { width: 240px; }
  .hero-devices .device-sm { display: none; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
}
/* La tacca copriva l'intestazione degli screenshot: la togliamo */
.device::before { display: none; }

/* =========================================================
   v3 · messaggio centrato sui dati (deck senza round)
   ========================================================= */
.tag-soon { color: #6a4a00; background: #fff4d6; border-color: #ffe39a; }
[data-bs-theme="dark"] .tag-soon { background: #3a2f12; color: #ffd54f; border-color: #5a4a1c; }

/* Piattaforma a due lati */
.twosided { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; }
.side { border-radius: var(--radius); padding: 1.4rem; border: 1px solid var(--border); background: var(--surface); }
.side h3 { font-size: 1.1rem; font-weight: 800; margin: .7rem 0 .4rem; }
.side p { color: var(--muted); font-size: .93rem; margin: 0 0 .5rem; }
.side .gets { font-weight: 700; font-size: .92rem; color: var(--brand); margin: 0; }
[data-bs-theme="dark"] .side .gets { color: #81c784; }
.side-b .gets { color: var(--sky); }
.hub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 0 .5rem; text-align: center; }
.hub img { width: 96px; height: 96px; filter: drop-shadow(0 12px 20px rgba(27, 94, 32, .3)); }
.hub-flow { display: flex; flex-direction: column; gap: .3rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.hub-flow span { display: inline-flex; align-items: center; gap: .3rem; justify-content: center; }
.network { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.network div { padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: var(--brand-50); font-weight: 700; font-size: .93rem; border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border)); }
.source-note { font-size: .78rem; color: var(--muted); margin-top: .75rem; }

/* Mossa controintuitiva */
.dark-band { border-radius: var(--radius); background: #13221a; color: #e5eee8; padding: 1.4rem 1.6rem; }
.dark-band strong { color: #9ad86a; display: block; font-size: 1.1rem; }
[data-bs-theme="dark"] .dark-band { background: #1a2620; border: 1px solid var(--border); }

@media (max-width: 991.98px) {
  .twosided { grid-template-columns: 1fr; }
  .hub { flex-direction: row; padding: .25rem 0; }
  .hub img { width: 64px; height: 64px; }
  .hub-flow { flex-direction: row; gap: 1rem; }
}
@media (max-width: 575.98px) {
  .network { grid-template-columns: 1fr; }
}

/* Menu mobile (offcanvas) */
.site-menu { --bs-offcanvas-width: min(340px, 86vw); background: var(--surface); color: var(--text); border-left: 1px solid var(--border); }
.site-menu .offcanvas-header { border-bottom: 1px solid var(--border); padding: .9rem 1rem; }
.site-menu .offcanvas-body { display: flex; flex-direction: column; gap: 1.25rem; padding: 1rem; }
.menu-nav { display: grid; gap: .25rem; }
.menu-nav a { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: var(--radius-sm); color: var(--text); font-weight: 700; text-decoration: none; transition: background .15s; }
.menu-nav a i { font-size: 1.15rem; color: var(--muted); }
.menu-nav a:hover { background: var(--surface-2); color: var(--text); }
.menu-nav a.active { background: var(--brand-100); color: var(--brand-700); }
.menu-nav a.active i { color: var(--brand); }
[data-bs-theme="dark"] .menu-nav a.active { color: #a5d6a7; }
.menu-actions { display: grid; gap: .5rem; margin-top: auto; }
@media (max-width: 399.98px) {
  .header-actions .btn-brand i { margin-right: 0 !important; }
  .header-actions .btn-brand { font-size: 0; padding: .4rem .65rem !important; }
  .header-actions .btn-brand i { font-size: 1rem; }
}
.steps-list { display: grid; gap: 1rem; margin-top: 1.2rem; }
