/* Homepage instaped.it */
:root {
  --bg: #fbfaff; --surface: #fff; --fg: #15131f; --muted: #625f73; --line: #e7e4f0; --tint: #f3f0ff;
  --pri: #6d4aff; --pri-fg: #fff; --pink: #e1306c; --orange: #ff8a3d;
  --grad: linear-gradient(100deg, #6d4aff 0%, #b23adb 50%, #e1306c 100%);
  --shadow: 0 30px 80px -20px rgba(80, 50, 200, .28);
  --radius: 20px;
  --font-h: "Plus Jakarta Sans", var(--font);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0b12; --surface: #15131e; --fg: #f1effa; --muted: #a29fb4; --line: #28253a; --tint: #120f1d;
    --pri: #8b6dff; --shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --bg: #0c0b12; --surface: #15131e; --fg: #f1effa; --muted: #a29fb4; --line: #28253a; --tint: #120f1d;
  --pri: #8b6dff; --shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font-h); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-h); letter-spacing: -.03em; margin: 0; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { width: min(820px, 100%); }

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font: 700 15px var(--font-h); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn--pri { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(109, 74, 255, .7); }
.btn--pri:hover { box-shadow: 0 14px 34px -10px rgba(225, 48, 108, .7); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--fg); }
.btn--ghost:hover { border-color: var(--pri); }
.btn:disabled { opacity: .6; cursor: default; }
.link { text-decoration: none; font-weight: 600; }
.link:hover { color: var(--pri); }

/* barra */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.04em; text-decoration: none; }
.nav__links { display: flex; gap: 26px; margin-left: 16px; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav__links a:hover { color: var(--fg); }
.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pri); margin-bottom: 14px; }
.eyebrow--light { color: #fff; opacity: .85; }

/* apertura */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 40%; height: 900px; background: radial-gradient(closest-side, rgba(109, 74, 255, .22), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(225, 48, 108, .18), transparent 70%); pointer-events: none; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; font-weight: 800; margin-bottom: 22px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); margin: 0 0 30px; max-width: 560px; }
.lead b { color: var(--fg); }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; font-weight: 600; }
.ticks li::before { content: "✓"; color: var(--pri); font-weight: 800; margin-right: 7px; }
.ticks--light { color: rgba(255,255,255,.9); }
.ticks--light li::before { color: #fff; }

.hero__demo { position: relative; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone { position: relative; width: 340px; height: 690px; border-radius: 52px; padding: 12px; background: #111; box-shadow: var(--shadow), inset 0 0 0 2px #2a2a2a; }
.phone__notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #000; z-index: 5; }
.phone__screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; overflow-y: auto; scrollbar-width: none; padding-top: 44px; font-size: 13px; }
.phone__screen::-webkit-scrollbar { display: none; }
.phone__screen .ig-bar { height: 38px; padding: 0 14px; }
.phone__screen .ig-bar__user { font-size: 17px; }
.phone__screen .ig-bar__icons svg { width: 22px; }
.phone__screen .ig-prof { padding: 4px 14px 10px; }
.phone__screen .ig-av { width: 72px; height: 72px; }
.phone__screen .ig-prof__row { gap: 18px; }
.phone__screen .ig-stats { gap: 16px; }
.phone__screen .ig-stats b { font-size: 14px; }
.phone__screen .ig-btn { height: 30px; font-size: 13px; }
.phone__screen .ig-tile { cursor: pointer; }
.phone__screen .ig-badge { font-size: 9.5px; padding: 2px 6px; }
.demo-hint { margin: 0; font-weight: 700; font-size: 14px; color: var(--muted); animation: bob 2.4s ease-in-out infinite; }
.demo-hint.done { animation: none; color: var(--pri); }
@keyframes bob { 50% { transform: translateY(-4px); } }

.float { position: absolute; z-index: 6; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 50px -18px rgba(40, 20, 120, .35); font-size: 13px; line-height: 1.3; animation: floaty 6s ease-in-out infinite; }
.float b { display: block; font-size: 13.5px; }
.float small { color: var(--muted); }
.float--a { left: -175px; top: 610px; }
.float--b { right: -185px; top: 250px; animation-delay: -3s; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.dot--chg { background: var(--chg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--chg) 22%, transparent); }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* disegni dei post finti */
.art { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 10%; color: #fff; overflow: hidden; }
.art__emoji { font-size: 44px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.2)); }
.art__t { font-weight: 800; font-size: 15px; line-height: 1.05; letter-spacing: -.02em; margin-top: 6px; }
.art__s { font-size: 9px; font-weight: 600; opacity: .9; margin-top: 4px; letter-spacing: .04em; text-transform: uppercase; }
.art--big .art__emoji { font-size: 96px; }
.art--big .art__t { font-size: 30px; margin-top: 14px; }
.art--big .art__s { font-size: 13px; margin-top: 8px; }

/* post aperto dentro il telefono */
.dv { position: absolute; inset: 12px; border-radius: 40px; z-index: 4; background: var(--ig-bg); color: var(--ig-fg); overflow-y: auto; scrollbar-width: none; padding-top: 44px; animation: slidein .22s ease-out; }
.dv::-webkit-scrollbar { display: none; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.dv__top { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px; border-bottom: 1px solid var(--ig-line); font-weight: 700; font-size: 15px; }
.dv__top button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: inherit; cursor: pointer; }
.dv__head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-weight: 600; }
.dv__head .ig-av { width: 28px; height: 28px; font-size: 12px; }
.dv__media { position: relative; aspect-ratio: 4 / 5; }
.dv__media--reel { aspect-ratio: 9 / 14; }
.dv__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dv__track::-webkit-scrollbar { display: none; }
.dv__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.dv__count { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.dv__play { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.9); pointer-events: none; }
.dv__acts { display: flex; justify-content: space-between; padding: 8px 12px 4px; }
.dv__acts span { display: flex; gap: 14px; }
.dv__acts svg { width: 22px; height: 22px; }
.dv__dots { display: flex; justify-content: center; gap: 4px; margin-top: -18px; margin-bottom: 8px; }
.dv__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ig-line); }
.dv__dots i.on { background: var(--ig-blue); }
.dv__cap { padding: 0 12px; font-size: 13px; line-height: 17px; }
.dv__cap b { font-weight: 600; }
.dv__box { margin: 12px; padding: 12px; border: 1px solid var(--ig-line); border-radius: 14px; display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.dv__state { font-weight: 700; }
.dv__state--wait { color: var(--wait); }
.dv__state--ok { color: var(--ok); }
.dv__state--chg { color: var(--chg); }
.dv__row { display: flex; gap: 6px; }
.dv__btn { flex: 1; height: 38px; border-radius: 10px; border: 0; font: 700 13px var(--font-h); cursor: pointer; }
.dv__btn--ok { background: var(--ok); color: #fff; }
.dv__btn--line { background: none; border: 1.5px solid var(--ig-line); color: var(--ig-fg); }
.dv__btn--chg { background: var(--chg); color: #fff; }
.dv textarea { width: 100%; font: 13px/1.4 var(--font-h); border: 1px solid var(--ig-line); border-radius: 10px; padding: 8px; resize: none; background: var(--ig-bg); color: var(--ig-fg); }
.dv__msg { padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--chg) 12%, var(--ig-bg)); }
.dv__msg small { display: block; color: var(--ig-sub); font-size: 11px; }
.dv__toast { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 8; background: #1f1f1f; color: #fff; padding: 9px 14px; border-radius: 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; animation: pop .25s ease-out; }
@keyframes pop { from { transform: translate(-50%, 10px); opacity: 0; } }
.phone__banner { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 7px 12px; background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700; }
.phone__banner span { background: #fff; color: var(--pri); border-radius: 99px; padding: 1px 8px; }

/* sezioni */
.sec { padding: 96px 0; }
.sec--tint { background: var(--tint); }
.sec__head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.sec__head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 800; }

.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pain__ico { font-size: 30px; display: block; margin-bottom: 14px; }
.pain b { font-size: 18px; display: block; margin-bottom: 6px; }
.pain p { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.step__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 18px; }
.step b { font-size: 19px; display: block; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform .2s, box-shadow .2s; }
.feat:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(80, 50, 200, .35); }
.feat__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--tint); font-size: 22px; margin-bottom: 14px; }
.feat b { display: block; font-size: 16px; margin-bottom: 4px; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* prezzi */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; }
.plan--hi { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.plan__tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.plan h3 { font-size: 21px; font-weight: 800; }
.plan__for { margin: 4px 0 18px; color: var(--muted); font-size: 14px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.plan__price b { font-size: 36px; font-weight: 800; letter-spacing: -.04em; }
.plan__price span { color: var(--muted); font-size: 14px; }
.plan__list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; line-height: 1.4; flex: 1; }
.plan__list li { padding-left: 24px; position: relative; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; color: var(--pri); font-weight: 800; }
.plan__list li.minus { color: var(--muted); }
.plan__list li.minus::before { content: "–"; color: var(--muted); }
.soon { display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--pink); background: color-mix(in srgb, var(--pink) 12%, transparent); padding: 1px 6px; border-radius: 6px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }

/* domande */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--pri); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* modulo */
.sec--cta { background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.sec--cta::before { content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; background: rgba(255,255,255,.08); right: -200px; top: -300px; }
.signup { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.signup h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; font-weight: 800; margin-bottom: 16px; }
.signup__txt p { font-size: 18px; opacity: .92; margin: 0 0 24px; }
.form { background: var(--surface); color: var(--fg); border-radius: 26px; padding: 28px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.45); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; font: 15px/1.4 var(--font-h); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid color-mix(in srgb, var(--pri) 30%, transparent); border-color: var(--pri); }
.form .invalid { border-color: var(--pink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 4px 0 12px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pri); flex: none; }
.form__err { color: var(--pink); font-weight: 600; font-size: 14px; min-height: 20px; margin: 0 0 10px; }
.form__ok { text-align: center; padding: 40px 10px; }
.form__ok span { font-size: 48px; display: block; margin-bottom: 10px; }
.form__ok b { font-size: 22px; display: block; margin-bottom: 6px; }
.form__ok p { color: var(--muted); margin: 0; }


/* responsive */
@media (max-width: 1320px) {
  .float--a { left: -100px; }
  .float--b { right: -100px; }
}
@media (max-width: 1100px) { .float { display: none; } }
@media (max-width: 1180px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero { padding-top: 32px; }
  .hero__in { grid-template-columns: 1fr; gap: 40px; }
  .hero__txt { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero__btns, .ticks { justify-content: center; }
  .pains, .steps { grid-template-columns: 1fr; }
  .signup { grid-template-columns: 1fr; gap: 32px; }
  .sec { padding: 72px 0; }
}
@media (max-width: 560px) {
  .nav__cta .link { display: none; }
  .phone { width: 300px; height: 610px; border-radius: 46px; padding: 10px; }
  .phone__screen { border-radius: 36px; }
  .dv { inset: 10px; border-radius: 36px; }
  .plans, .feats, .grid2 { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .grid2 { gap: 0; }
  .hero__btns .btn { flex: 1; }
}

/* ---------------------------------------------------------------- sito: menu */
.nav__links a.on { color: var(--fg); }
.nav__only-mobile { display: none; }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 960px) {
  .nav__burger { display: inline-flex; }
  .nav__login { display: none; }
  .nav__links { display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; padding: 8px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0,0,0,.2); }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__only-mobile { display: block; }
}
@media (max-width: 400px) { .nav__cta .btn--pri { padding: 0 12px; } }

/* ---------------------------------------------------------------- piè di pagina */
.foot { padding: 56px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot__brand p { margin: 12px 0 0; max-width: 280px; }
.foot .logo { color: var(--fg); font-size: 18px; }
.foot__col { display: flex; flex-direction: column; gap: 10px; }
.foot__col b { color: var(--fg); font-size: 14px; margin-bottom: 2px; }
.foot__col a { text-decoration: none; }
.foot__col a:hover { color: var(--pri); }
.foot__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- prezzi */
.billing { display: flex; width: max-content; margin: 0 auto 36px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.billing button { border: 0; background: none; color: var(--muted); font: 700 15px var(--font-h); padding: 10px 20px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.billing button.on { background: var(--grad); color: #fff; }
.billing__save { font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.billing button.on .billing__save { background: rgba(255,255,255,.25); color: #fff; }
.plan__price { margin-bottom: 4px; }
.plan__note { margin: 0 0 20px; font-size: 13px; color: var(--muted); min-height: 18px; }
.plans__foot { text-align: center; color: var(--muted); font-size: 14px; max-width: 720px; margin: 28px auto 0; }
.sec__more { text-align: center; margin: 32px 0 0; }

/* ---------------------------------------------------------------- pagine interne */
.page-hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% auto 30%; height: 700px; background: radial-gradient(closest-side, rgba(109,74,255,.16), transparent 70%); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; font-weight: 800; margin: 0 0 18px; max-width: 900px; }
.page-hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-left: auto; margin-right: auto; }
.lead a { color: var(--pri); font-weight: 700; }
.sec--tight { padding-top: 24px; }
.ticks--col { flex-direction: column; gap: 8px; }

.band { padding: 72px 0; }
.band__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 40px; border-radius: 28px; background: var(--tint); border: 1px solid var(--line); }
.band__in h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 6px; }
.band__in p { margin: 0; color: var(--muted); }
.band__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* funzionalità: righe testo + illustrazione */
.rows { display: flex; flex-direction: column; gap: 96px; }
.row-f { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.row-f--rev .row-f__txt { order: 2; }
.row-f__txt h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.1; margin-bottom: 14px; }
.row-f__txt p { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.viz { border-radius: 28px; background: var(--tint); border: 1px solid var(--line); padding: 36px; min-height: 320px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; }
.viz__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; width: min(300px, 100%); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.viz__grid i { position: relative; aspect-ratio: 3 / 4; background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 60%, #000)); }
.viz__grid em { position: absolute; left: 5px; bottom: 5px; font: 700 9px var(--font-h); color: #fff; padding: 2px 6px; border-radius: 99px; }
.b-w { background: var(--wait); } .b-ok { background: var(--ok); } .b-c { background: var(--chg); }
.drop-demo { width: min(320px, 100%); border: 2px dashed var(--pri); border-radius: 20px; padding: 32px; text-align: center; background: var(--surface); display: flex; flex-direction: column; gap: 4px; color: var(--pri); }
.drop-demo span { font-size: 30px; }
.drop-demo b { color: var(--fg); font-size: 17px; }
.drop-demo small { color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chips span { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.ap-demo { width: min(340px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); font-size: 14px; }
.ap-demo__state { color: var(--wait); }
.ap-demo__row { display: flex; gap: 8px; }
.ap-demo__row span { flex: 1; text-align: center; padding: 10px; border-radius: 10px; font-weight: 700; }
.ap-ok { background: var(--ok); color: #fff; }
.ap-line { border: 1.5px solid var(--line); }
.ap-demo__log { background: color-mix(in srgb, var(--chg) 10%, var(--surface)); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
.ap-demo__log b { color: var(--fg); }
.ap-demo__log p { margin: 4px 0 0; color: var(--fg); font-size: 14px; }
.ap-demo__log--ag { background: var(--tint); }
.ap-demo__log i { font-style: normal; font-size: 10px; text-transform: uppercase; background: var(--line); padding: 1px 5px; border-radius: 4px; }
.team-demo { width: min(360px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.team-demo div { display: flex; flex-direction: column; }
.team-demo small { color: var(--muted); }
.team-demo span { color: var(--pri); font-weight: 600; font-size: 13px; text-align: right; }
.team-demo--you { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.inv-demo { width: min(360px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); font-size: 14px; }
.inv-demo__link { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--tint); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.inv-demo__link span { background: var(--grad); color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 8px; white-space: nowrap; }
.muted { color: var(--muted); }
@media (max-width: 860px) {
  .row-f { grid-template-columns: 1fr; gap: 28px; }
  .row-f--rev .row-f__txt { order: 0; }
  .rows { gap: 64px; }
  .viz { padding: 24px; min-height: 0; }
}

/* confronto piani */
.compare-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14.5px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare thead th { font-size: 15px; font-weight: 800; background: var(--tint); }
.compare tbody th { text-align: left; font-weight: 600; color: var(--muted); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare td:nth-child(3) { background: color-mix(in srgb, var(--pri) 5%, transparent); }

/* domande per gruppi */
.faq-group { margin-bottom: 44px; }
.faq-group h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }

/* pagine legali */
.legal { font-size: 16px; }
.legal__todo { background: var(--tint); border: 1px dashed var(--line); border-radius: 16px; padding: 24px; color: var(--muted); }
.legal h2 { font-size: 20px; font-weight: 800; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--fg); line-height: 1.7; }
.legal a { color: var(--pri); }
.legal ul { padding-left: 22px; }
.legal__date { color: var(--muted); font-size: 14px; }
.legal__table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; display: block; overflow-x: auto; }
.legal__table th, .legal__table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; min-width: 140px; }
.legal__table th { background: var(--tint); }
.legal code { background: var(--tint); padding: 1px 6px; border-radius: 6px; }

/* ---------------------------------------------------------------- registrazione */
.page-hero--short { padding: 48px 0 16px; }
.reg { max-width: 760px; }
.reg__form { display: flex; flex-direction: column; gap: 18px; }
.reg__step { border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin: 0; background: var(--surface); min-width: 0; }
.reg__step[hidden] { display: none; }
.reg__step legend { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; padding: 0 6px; }
.reg__step legend span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 14px; }
.reg__step .billing { margin: 6px 0 16px; }
.reg__plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reg__plan { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; background: var(--bg); }
.reg__plan.on { border-color: var(--pri); background: color-mix(in srgb, var(--pri) 6%, var(--surface)); }
.reg__plan input { position: absolute; opacity: 0; pointer-events: none; }
.reg__plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.reg__plan-head b { font-size: 16px; }
.reg__price { font-weight: 800; white-space: nowrap; }
.reg__price small { font-weight: 500; color: var(--muted); font-size: 11px; }
.reg__trial { align-self: flex-start; margin-top: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.reg__trial--free { background: var(--tint); color: var(--muted); }
.grid3 { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 12px; }
.field small { font-weight: 500; }
.field[hidden], .grid2[hidden], p[hidden] { display: none; }
.reg__summary { border-radius: 20px; background: var(--tint); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.reg__line { display: flex; justify-content: space-between; gap: 12px; }
.reg__line--tot { border-top: 1px solid var(--line); padding-top: 10px; font-size: 18px; }
.reg__today { margin: 4px 0 0; font-size: 14px; }
.reg__summary p { margin: 0; }
.reg__login { text-align: center; color: var(--muted); margin: 0; }
.reg__login a, .consent a { color: var(--pri); font-weight: 700; }
.notice-box { border-radius: 16px; padding: 16px 18px; background: color-mix(in srgb, var(--pri) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--pri) 25%, transparent); margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.notice-box p { margin: 0; }
.notice-box--warn { background: color-mix(in srgb, var(--chg) 10%, var(--surface)); border-color: color-mix(in srgb, var(--chg) 30%, transparent); margin: 6px 0 0; }
.notice-box a { color: var(--pri); font-weight: 700; }
.small { font-size: 13px; }
@media (max-width: 560px) {
  .reg__plans { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .reg__step { padding: 18px 14px; }
}

/* benvenuto dopo il pagamento */
.welcome { min-height: 60vh; display: grid; place-items: center; }
.welcome__box { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.welcome__box h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 0; }
.welcome__box .lead { margin: 0; }
.welcome__spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--pri); animation: spin .9s linear infinite; }
.welcome__ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 30px; font-weight: 800; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice-box[hidden] { display: none; }
.notice-box--warn { display: block; }
.reg__form input:not([type=checkbox]):not([type=radio]), .reg__form select {
  width: 100%; font: 16px/1.4 var(--font-h); color: var(--fg); background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 13px; min-height: 48px;
}
.reg__form input:focus, .reg__form select:focus { outline: 3px solid color-mix(in srgb, var(--pri) 30%, transparent); border-color: var(--pri); }
.reg__form .invalid { border-color: var(--pink); }
.reg__form .consent input { width: 22px; height: 22px; }

/* iPhone: niente ingrandimento automatico sui campi, niente scorrimento laterale */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }
@media (pointer: coarse), (max-width: 900px) {
  input, textarea, select { font-size: 16px !important; }
}
