/* ── PRODIGI® Inner pages — extends home.css ─────────────────────────────── */

.hero .hero__title { max-width: 16ch; }
.hero .hero__title--sm { font-size: clamp(36px, 5.6vw, 72px); max-width: 20ch; }
.hero__subtitle { margin-top: 20px; font-size: clamp(22px, 2.6vw, 32px); }

.section__head--center { text-align: center; }
.section__head--center .section__desc { margin-inline: auto; }

/* Section titles stay on one line on desktop */
.section__head { max-width: none; }

.section__desc { margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); max-width: 52ch; }
.section__desc--line { max-width: none; }
@media (min-width: 1024px) { .section__desc--line { white-space: nowrap; } }

.num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Shared list style: thin separators, light tick icon */
.compare__list, .benefit__list { list-style: none; margin: 24px 0 0; padding: 0; }
.compare__list li, .benefit__list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 15px;
}
.compare__list li::before, .benefit__list li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 16px; height: 16px;
  background: var(--fg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Comparison ──────────────────────────────────────────────────────────── */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare__card {
  padding: clamp(24px, 3vw, 40px);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line); border-radius: 20px;
}
.compare__card h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 20px 0 10px; }
.compare__sub { font-size: 17px; }
.compare__body { margin-top: 16px; color: var(--muted); font-size: 15px; }
.compare__result { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 500; }
.compare .reveal:nth-child(2) { transition-delay: .08s; }

/* ── Statement subline ───────────────────────────────────────────────────── */
.statement__cta { display: flex; justify-content: center; margin-top: 32px; }
.benefit__link { margin-top: 24px; }

.statement__sub {
  max-width: 56ch; margin: 28px auto 0; text-align: center;
  color: var(--muted); font-size: clamp(16px, 1.4vw, 18px);
}

/* ── Benefits ────────────────────────────────────────────────────────────── */
.benefits { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 112px); }
.benefit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.benefit--reverse .benefit__img { order: 2; }
.benefit__img { aspect-ratio: 6 / 5; border-radius: 20px; overflow: hidden; background: var(--surface); }
.benefit__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.benefit:hover .benefit__img img { transform: scale(1.04); }
/* Full image, no crop: the box follows the photo's own proportions */
.benefit__img--full { aspect-ratio: auto; }
.benefit__img--full img { height: auto; }
.benefit:hover .benefit__img--full img { transform: none; }

/* ── Code infographics (Superstore) ──────────────────────────────────────── */
.benefit__img--graphic {
  aspect-ratio: auto; display: grid; place-items: center;
  padding: clamp(16px, 3vw, 32px);
  background: radial-gradient(60% 60% at 50% 45%, rgba(0, 229, 255, .07), transparent 70%), color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line);
}
.benefit__img--bare { background: none; border: 0; padding: 0; overflow: visible; }
.infographic { width: 100%; height: auto; max-height: 560px; overflow: visible; }
.ig-land path { fill: color-mix(in srgb, var(--fg) 5%, transparent); stroke: color-mix(in srgb, var(--fg) 22%, transparent); stroke-width: 1; stroke-linejoin: round; }
.ig-land--dots path { fill: url(#ig-dots); stroke: none; }
.ig-dot { fill: color-mix(in srgb, var(--fg) 18%, transparent); }
.ig-spine { stroke: url(#ig-grad); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: .8; animation: ig-flow 2.4s linear infinite; }
.ig-link { stroke: color-mix(in srgb, var(--fg) 35%, transparent); stroke-width: 1; }
.ig-link--flow { stroke: var(--cyan); opacity: .55; stroke-dasharray: 3 6; animation: ig-flow 1.8s linear infinite; animation-delay: var(--d); }
.ig-node { fill: var(--bg); stroke: var(--fg); stroke-width: 1.4; }
.ig-node--lg { stroke: var(--cyan); stroke-width: 2; }
.ig-hub__core { fill: url(#ig-grad); }
.ig-hub__pulse { fill: none; stroke: var(--magenta); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ig-pulse 2.8s ease-out infinite; animation-delay: var(--d); }
.ig-legend text, .ig-label { fill: var(--muted); font-size: 13px; font-family: inherit; }
.ig-label { text-anchor: middle; fill: var(--fg); font-size: 16px; font-weight: 500; }
.ig-label--muted { fill: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .18em; }
.ig-area { fill: color-mix(in srgb, var(--magenta) 5%, transparent); stroke: none; }
.ig-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.ig-ring--grad { stroke: url(#ig-grad); stroke-width: 1.4; stroke-dasharray: 2 7; }
.ig-orbit { transform-origin: 260px 260px; animation: eco-spin 60s linear infinite; }
.ig-center { fill: url(#ig-grad); filter: drop-shadow(0 0 24px rgba(255, 0, 140, .45)); }
.ig-logo { filter: brightness(0) invert(1); }
@keyframes ig-flow { to { stroke-dashoffset: -18; } }
@keyframes ig-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ig-spine, .ig-link--flow, .ig-hub__pulse, .ig-orbit { animation: none; }
}

.benefit h3 { font-size: clamp(28px, 3vw, 40px); margin: 16px 0 12px; }
.benefit__lead { font-size: 17px; max-width: 40ch; }
.benefit__result { margin-top: 24px; font-weight: 500; }

/* ── Steps ───────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  padding: clamp(24px, 3vw, 36px);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line); border-radius: 20px;
}
.step__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 28px;
  border-radius: 12px; background: var(--grad); color: #fff;
}
.step h3 { font-size: clamp(22px, 2.2vw, 28px); margin: 12px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }
.steps .reveal:nth-child(2) { transition-delay: .08s; }
.steps .reveal:nth-child(3) { transition-delay: .16s; }

.steps--two { grid-template-columns: 1fr 1fr; }
.step .benefit__list { margin-top: 16px; }

/* ── Pricing calculator (Licenza) ────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; max-width: 960px; margin-inline: auto; }
.calc__price { margin-top: 12px; font-size: clamp(32px, 3.4vw, 44px); font-weight: 500; letter-spacing: -0.03em; }
.calc__price span { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.calc__label { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; }
.calc__label strong { font-size: 28px; font-weight: 500; }
.calc__slider {
  --pct: 0%;
  width: 100%; margin: 18px 0 8px; height: 6px; border-radius: 999px;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: linear-gradient(90deg, #FF008C, #00E5FF) 0 / var(--pct) 100% no-repeat, var(--line);
}
.calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--fg); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--line);
}
.calc__slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--fg); border: 4px solid var(--surface);
}
.calc__cur { font-size: .55em; font-weight: 400; margin-left: 2px; vertical-align: .55em; }
.calc__range { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.calc__total {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
}
.calc__formula { color: var(--muted); font-size: 15px; }
.calc__result { font-size: clamp(36px, 4vw, 52px); font-weight: 500; letter-spacing: -0.03em; }
.calc__per { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }

/* ── Plans (pricing-style comparison) ────────────────────────────────────── */
.plans { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 20px; align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  color: var(--muted);
}
.plan__name { font-size: clamp(22px, 2.2vw, 28px); color: var(--muted); }
.plan__tag { margin-top: 8px; font-size: 15px; }
.plan__list { list-style: none; margin: 28px 0 0; padding: 0; flex: 1; }
.plan__list li {
  position: relative;
  padding: 11px 0 11px 28px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M20 6 9 17l-5-5%27/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M20 6 9 17l-5-5%27/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan__list li.no { opacity: .45; text-decoration: line-through; text-decoration-color: var(--line); }
.plan__list li.no::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%272%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M18 6 6 18M6 6l12 12%27/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%272%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M18 6 6 18M6 6l12 12%27/%3E%3C/svg%3E");
}
.plan__result { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 500; }

/* Prodigi: accent border, glow, full-contrast text */
.plan--featured {
  color: var(--fg);
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 30px 80px -30px rgba(255, 0, 140, .45), 0 30px 80px -40px rgba(0, 229, 255, .4);
}
.plan--featured .plan__name { font-size: clamp(26px, 2.6vw, 34px); }
.plan--featured .plan__tag { color: var(--fg); }
.plan--featured .plan__list li { color: var(--fg); }
.plan--featured .plan__list li::before { background: var(--grad); }
/* Two selectable options (e.g. Nodi): both full-contrast */
.plans--two { grid-template-columns: 1fr 1fr; }
.plan--option { color: var(--fg); }
.plan--option .plan__name, .plan--option .plan__tag { color: var(--fg); }

.plan__specs { margin: 28px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.plan__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--surface); font-size: 14px; }
.plan__specs dt { color: var(--muted); }
.plan__specs dd { margin: 0; font-weight: 500; text-align: right; }
.plan__btn { margin-top: 28px; justify-content: center; }

.plan__badge {
  position: absolute; top: -13px; left: clamp(24px, 3vw, 36px);
  padding: 4px 12px; border-radius: 999px;
  background: var(--grad); color: #fff;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
}
.plans .reveal:nth-child(2) { transition-delay: .08s; }
.plans .reveal:nth-child(3) { transition-delay: .16s; }

/* ── Sticky CTA bar ──────────────────────────────────────────────────────── */
.sticky-cta {
  position: fixed; left: 50%; bottom: 16px; z-index: 40;
  width: min(760px, calc(100vw - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 24px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  transform: translateX(-50%);
  transition: opacity .35s, transform .35s, visibility .35s;
}
.sticky-cta.is-hidden { opacity: 0; visibility: hidden; transform: translate(-50%, 24px); }
.sticky-cta__text { font-size: 15px; font-weight: 500; }
.sticky-cta .btn { flex-shrink: 0; height: 44px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .compare, .benefit, .plans, .steps, .calc { grid-template-columns: minmax(0, 1fr); }
  .plan--featured { order: -1; margin-top: 12px; }
  .calc .plan--featured { order: 0; margin-top: 0; }
  .benefit--reverse .benefit__img { order: 0; }
  .sticky-cta { padding: 8px; border-radius: 16px; }
  .sticky-cta__text { display: none; }
  .sticky-cta .btn { width: 100%; justify-content: center; }
}
