/* DIAR — shared stylesheet */
/* bg #08090a · Inter · accent #0fb6d0 (cyan) · accent-red #b11313 · no framework · no build */

:root {
  --bg:   #08090a;
  --bg2:  #0e0f11;
  --bg3:  #141518;
  --line:  rgba(255,255,255,.08);
  --line2: rgba(255,255,255,.14);
  --text:  #f7f8f8;
  --muted: #9499a3;
  --muted2:#6b6f78;
  --accent: #0fb6d0;
  --accent2:#4dd4ea;
  --accent-ghost: rgba(15,182,208,.13);
  --accent-red: #b11313;
  --green: #7ee0b8;
  --green-ghost: rgba(126,224,184,.08);
  --green-border: rgba(126,224,184,.3);
  --red:   #f87171;
  --red-ghost: rgba(248,113,113,.08);
  --red-border:rgba(248,113,113,.3);
  --radius:14px;
  --radius-sm:9px;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
input, select, button, textarea { font-family: inherit; }

.wrap    { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted   { color: var(--muted); }
.muted2  { color: var(--muted2); }

/* ── Aurora + grid (hero) ─────────────────────────────── */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora::before {
  content: "";
  position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(15,182,208,.32), transparent 70%),
    radial-gradient(closest-side, rgba(77,212,234,.16), transparent 70%);
  filter: blur(40px); opacity: .7;
}
.grid-fade {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image:         radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .5;
}

/* ── Nav / Header ─────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(8,9,10,.7);
  border-bottom: 1px solid var(--line);
}
nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: .06em; font-size: 15px;
}
.logo {
  height: 30px; width: auto; flex-shrink: 0;
}
.logo img { height: 100%; width: auto; object-fit: contain; display: block; }
.logo-fallback {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 0 18px rgba(15,182,208,.55);
  position: relative;
}
.logo-fallback::after {
  content: ""; position: absolute; inset: 6px; border-radius: 3px;
  background: #0b0c0e; opacity: .55;
}
.navlinks { display: flex; gap: 28px; font-size: 14px; }
.navlinks a { color: var(--muted); transition: color .15s; }
.navlinks a:hover, .navlinks a.active { color: var(--text); }
.navactions { display: flex; align-items: center; gap: 14px; font-size: 14px; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--radius-sm); font-weight: 500; font-size: 14px;
  padding: 9px 16px; border: 1px solid transparent;
  cursor: pointer; transition: all .15s; white-space: nowrap;
  background: none;
}
.btn-primary {
  background: var(--accent); color: #0a1012;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 30px -8px rgba(15,182,208,.65);
}
.btn-primary:hover { background: #12cbea; transform: translateY(-1px); }
.btn-primary:disabled { opacity: .45; cursor: default; transform: none; }
.btn-ghost {
  background: rgba(255,255,255,.04); border-color: var(--line2); color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-text { color: var(--muted); }
.btn-text:hover { color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ── Pills ────────────────────────────────────────────── */
.pill {
  font-size: 11px; font-weight: 500;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line2);
}
.pill.live   { color: var(--green); border-color: var(--green-border); background: var(--green-ghost); }
.pill.soon   { color: var(--muted); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative; text-align: center;
  padding: 96px 0 60px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--muted); border: 1px solid var(--line2);
  background: rgba(255,255,255,.03); padding: 6px 13px; border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent2); box-shadow: 0 0 8px var(--accent2);
}
h1 {
  font-size: 64px; line-height: 1.04; letter-spacing: -.03em;
  font-weight: 600; max-width: 14ch; margin: 0 auto 22px;
  background: linear-gradient(180deg, #fff 35%, #b9bdc7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub {
  font-size: 19px; color: var(--muted); max-width: 56ch;
  margin: 0 auto 34px; line-height: 1.6;
}
.cta { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.trust {
  margin-top: 34px; font-size: 13px; color: var(--muted2);
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.trust span { display: inline-flex; gap: 6px; align-items: center; }
.trust b    { color: var(--muted); font-weight: 500; }

/* ── App preview window ───────────────────────────────── */
.preview { position: relative; z-index: 1; margin: 64px auto 0; max-width: 980px; }
.window {
  border: 1px solid var(--line2); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #101114, #0b0c0e);
  box-shadow:
    0 40px 120px -40px rgba(15,182,208,.38),
    0 1px 0 rgba(255,255,255,.06) inset;
}
.titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2c31; }
.titlebar .addr {
  margin-left: 14px; font-size: 12px; color: var(--muted2);
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 7px; padding: 4px 12px;
}
.canvas { display: grid; grid-template-columns: 170px 1fr; min-height: 340px; }
.side {
  border-right: 1px solid var(--line); padding: 18px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.tool {
  font-size: 13px; color: var(--muted); padding: 8px 10px;
  border-radius: 8px; display: flex; align-items: center; gap: 9px;
}
.tool.active { background: var(--accent-ghost); color: var(--text); }
.tool .sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line2); }
.tool .sw.lit { background: linear-gradient(135deg, var(--accent2), var(--accent)); border: none; }
.stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(600px 300px at 30% 10%, rgba(15,182,208,.14), transparent 60%),
    radial-gradient(500px 300px at 80% 90%, rgba(77,212,234,.09), transparent 60%);
}
.art {
  width: 62%; aspect-ratio: 16/10; border-radius: 12px;
  border: 1px solid var(--line2);
  background: linear-gradient(135deg, #1a1c22, #0e0f13);
  position: relative; overflow: hidden;
}
.art::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(closest-side, rgba(15,182,208,.28), transparent 70%);
  transform: translate(20%, -10%) scale(1.2);
}
.badge {
  position: absolute; bottom: 14px; left: 14px; font-size: 12px; color: var(--muted);
  border: 1px solid var(--line2); background: rgba(0,0,0,.4);
  border-radius: 7px; padding: 5px 11px; backdrop-filter: blur(6px);
}

/* ── Sections ─────────────────────────────────────────── */
section.block { position: relative; padding: 96px 0; }
.kicker {
  font-size: 13px; color: var(--accent2); font-weight: 500;
  letter-spacing: .04em; text-align: center; margin-bottom: 14px;
}
h2 {
  font-size: 38px; letter-spacing: -.02em; font-weight: 600;
  text-align: center; margin-bottom: 14px;
}
.lead {
  text-align: center; color: var(--muted); font-size: 17px;
  max-width: 50ch; margin: 0 auto 52px;
}

/* ── Product cards ────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
  transition: all .18s; position: relative; overflow: hidden;
}
.card:hover { border-color: var(--line2); transform: translateY(-3px); }
.card .ic {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-ghost); border: 1px solid var(--line2); margin-bottom: 18px;
}
.card .ic b {
  width: 14px; height: 14px; border-radius: 4px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
}
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.card p  { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.tierline { font-size: 13px; color: var(--muted2); display: flex; gap: 8px; flex-wrap: wrap; }
.tierline b {
  color: var(--muted); font-weight: 500;
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
}

/* ── Pricing cards (editions.html) ───────────────────── */
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pricing-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
  display: flex; flex-direction: column; gap: 0;
  transition: border-color .18s, transform .18s;
  position: relative; overflow: hidden;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px -20px rgba(15,182,208,.35);
}
.pricing-card .featured-label {
  position: absolute; top: 0; right: 0;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 12px; border-radius: 0 var(--radius) 0 var(--radius-sm);
  letter-spacing: .04em;
}
.pricing-card:hover { transform: translateY(-3px); }
.pricing-card .tier-name {
  font-size: 15px; font-weight: 600; color: var(--accent2); margin-bottom: 8px;
}
.pricing-card .tier-price {
  font-size: 40px; font-weight: 700; letter-spacing: -.03em;
  margin-bottom: 4px; line-height: 1;
}
.pricing-card .tier-price span { font-size: 18px; font-weight: 500; color: var(--muted); }
.pricing-card .tier-range {
  font-size: 13px; color: var(--muted2); margin-bottom: 8px;
}
.pricing-card .tier-size {
  font-size: 13px; color: var(--muted); margin-bottom: 24px;
}
.pricing-card .tier-divider {
  border: none; border-top: 1px solid var(--line); margin-bottom: 22px;
}
.pricing-card .feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pricing-card .feature-list li {
  font-size: 14px; color: var(--muted); display: flex; align-items: flex-start; gap: 10px;
}
.pricing-card .feature-list li::before {
  content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.pricing-card .feature-list li.soon { opacity: .5; }
.pricing-card .feature-list li.soon::before { content: "—"; color: var(--muted2); }
.pricing-card .tier-cta { margin-top: auto; padding-top: 28px; }

.upgrade-note {
  margin-top: 40px; text-align: center;
  font-size: 14px; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  padding: 20px 28px; max-width: 680px; margin-left: auto; margin-right: auto;
}
.upgrade-note b { color: var(--text); }

/* ── Account / Area Clienti ───────────────────────────── */
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
  padding: 48px 0 80px;
}
.account-nav {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg2); padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 76px;
}
.account-nav .nav-item {
  font-size: 14px; color: var(--muted);
  padding: 9px 14px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all .12s;
  display: flex; align-items: center; gap: 10px;
}
.account-nav .nav-item:hover { background: rgba(255,255,255,.05); color: var(--text); }
.account-nav .nav-item.active { background: var(--accent-ghost); color: var(--text); }
.account-nav .nav-sep { height: 1px; background: var(--line); margin: 6px 0; }

.panel-section {
  display: none;
  flex-direction: column;
  gap: 20px;
}
.panel-section.visible { display: flex; }

.panel-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  padding: 28px;
}
.panel-card h2 {
  font-size: 20px; font-weight: 600; text-align: left;
  margin-bottom: 6px; letter-spacing: -.02em;
}
.panel-card .panel-sub {
  font-size: 14px; color: var(--muted); margin-bottom: 24px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input, .field select {
  background: var(--bg3); border: 1px solid var(--line2);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 10px 14px; font-size: 14px; outline: none;
  transition: border-color .15s;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field input::placeholder { color: var(--muted2); }

.msg {
  font-size: 13px; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); display: none; margin-top: 8px;
}
.msg.ok   { color: var(--green); border-color: var(--green-border); background: var(--green-ghost); display: block; }
.msg.err  { color: var(--red);   border-color: var(--red-border);   background: var(--red-ghost);   display: block; }
.msg.info { color: var(--muted2); border-color: var(--line); background: rgba(255,255,255,.02); display: block; }

.serial-box {
  background: var(--bg3); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 18px; font-weight: 600; letter-spacing: .06em;
  color: var(--accent2); text-align: center; margin: 16px 0;
  word-break: break-all;
}

.download-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.dl-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 16px; display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--muted);
}
.dl-item .dl-key { flex: 1; font-family: monospace; font-size: 12px; word-break: break-all; }
.dl-item a.btn { flex-shrink: 0; }

/* Server log */
.server-log {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #070809; padding: 14px 16px;
  font-family: monospace; font-size: 12px; line-height: 1.7;
  color: var(--muted2); max-height: 220px; overflow-y: auto;
  white-space: pre-wrap; word-break: break-all;
}
.server-log .log-ok   { color: var(--green); }
.server-log .log-err  { color: var(--red); }
.server-log .log-req  { color: var(--accent2); }
.server-log .log-muted{ color: var(--muted2); }

/* ── Footer ───────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 48px 0 60px; margin-top: 40px; }
.foot  { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; }
.foot .muted { font-size: 13px; max-width: 34ch; line-height: 1.6; }
.cols { display: flex; gap: 60px; font-size: 14px; }
.cols h4 {
  font-size: 12px; color: var(--muted2); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 14px; font-weight: 600;
}
.cols a { display: block; color: var(--muted); margin-bottom: 10px; transition: color .15s; }
.cols a:hover { color: var(--text); }
.legal {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ── Nav brand claim ──────────────────────────────────── */
.brand-claim {
  font-size: 10px; color: var(--muted2); font-weight: 400;
  letter-spacing: .04em; line-height: 1; display: block;
  margin-top: 2px; text-transform: uppercase;
}

/* ── Hero preview — real screenshot ──────────────────── */
.preview-img {
  width: 100%; height: auto; display: block;
  border-radius: 0 0 17px 17px;
}
.img-badge {
  position: absolute; bottom: 16px; right: 16px;
  font-size: 11px; color: var(--muted2);
  border: 1px solid var(--line2); background: rgba(8,9,10,.75);
  border-radius: 6px; padding: 4px 10px; backdrop-filter: blur(6px);
}

/* ── Gallery — See it in action ───────────────────────── */
.gallery-section { padding: 80px 0 96px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 52px;
}
.gallery-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg2);
  transition: border-color .18s, transform .18s;
  position: relative;
}
.gallery-item:hover { border-color: var(--accent); transform: translateY(-3px); }
.gallery-item img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block;
}
.gallery-caption {
  padding: 14px 16px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.gallery-caption span { font-size: 13px; color: var(--muted); font-weight: 500; }
.badge-tier {
  font-size: 10px; font-weight: 600; letter-spacing: .05em;
  padding: 3px 8px; border-radius: 999px;
  color: var(--accent); border: 1px solid rgba(15,182,208,.35);
  background: rgba(15,182,208,.08);
}

/* ── Edition card thumbnails ──────────────────────────── */
.edition-thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 9px; display: block; margin-bottom: 20px;
  border: 1px solid var(--line);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  h1 { font-size: 42px; }
  .cards, .pricing-cards { grid-template-columns: 1fr; }
  .canvas { grid-template-columns: 1fr; }
  .side { display: none; }
  .navlinks { display: none; }
  .foot { flex-direction: column; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .brand-claim { display: none; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ── Carousel (hero home) ─────────────────────────────── */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; aspect-ratio: 1600 / 790; }
.carousel-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.carousel-slide { flex: 0 0 100%; min-width: 0; height: 100%; }
.carousel-slide img,
.carousel-slide video {
  width: 100%; height: 100%; object-fit: cover; display: block; background: #0b0c0e;
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line2); background: rgba(8, 9, 10, .55); color: var(--text);
  font-size: 22px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, opacity .2s; z-index: 3; opacity: .5;
}
.carousel:hover .carousel-arrow { opacity: .85; }
.carousel-arrow:hover { background: rgba(15, 182, 208, .35); opacity: 1; }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-audio {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line2); background: rgba(8, 9, 10, .55); color: var(--text);
  font-size: 16px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.carousel-audio:hover { background: rgba(15, 182, 208, .35); }
.carousel-audio[hidden] { display: none; }
.carousel-dots {
  position: absolute; bottom: 12px; left: 0; right: 0; z-index: 3;
  display: flex; gap: 7px; justify-content: center;
}
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .3); transition: all .18s; padding: 0;
}
.carousel-dot.active { background: var(--accent2); width: 22px; border-radius: 4px; }
.carousel-caption {
  text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted);
  letter-spacing: .02em; min-height: 20px;
}

/* ── Reveal on scroll ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Editions switcher ────────────────────────────────── */
.ed-switch {
  display: flex; gap: 4px; width: fit-content; margin: 0 auto 36px;
  padding: 5px; border: 1px solid var(--line2); border-radius: 999px; background: var(--bg2);
}
.ed-seg {
  border: none; background: none; color: var(--muted); cursor: pointer;
  font-size: 14px; font-weight: 500; padding: 9px 26px; border-radius: 999px;
  transition: color .15s, background .15s; white-space: nowrap;
}
.ed-seg:hover { color: var(--text); }
.ed-seg.active { background: var(--accent); color: #0a1012; box-shadow: 0 6px 20px -8px rgba(15, 182, 208, .6); }
.ed-cards[data-mode="single"] { display: flex; justify-content: center; }
.ed-cards[data-mode="single"] .pricing-card { display: none; width: 100%; max-width: 430px; }
.ed-cards[data-mode="single"] .pricing-card.active { display: flex; animation: edFade .35s ease; }
.ed-cards[data-mode="compare"] { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ed-cards[data-mode="compare"] .pricing-card {
  display: flex; cursor: pointer;
  border-color: var(--line); box-shadow: none; transform: none;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
/* in compare l'evidenziazione "Most popular" fissa è neutralizzata: segue la selezione */
.ed-cards[data-mode="compare"] .pricing-card.featured { border-color: var(--line); box-shadow: none; transform: none; }
.ed-cards[data-mode="compare"] .pricing-card:hover { border-color: var(--line2); transform: translateY(-3px); }
.ed-cards[data-mode="compare"] .pricing-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px -20px rgba(15, 182, 208, .35);
  transform: translateY(-4px);
}
.ed-compare-row { text-align: center; margin-top: 26px; }
@keyframes edFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .ed-cards[data-mode="compare"] { grid-template-columns: 1fr; }
}

/* ── Module modal (See it in action) ──────────────────── */
.gallery-zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 12px; color: var(--text); background: rgba(8, 9, 10, .6);
  border: 1px solid var(--line2); border-radius: 999px; padding: 4px 11px;
  opacity: 0; transform: translateY(-4px); transition: opacity .18s, transform .18s; backdrop-filter: blur(6px);
}
.gallery-item:hover .gallery-zoom { opacity: 1; transform: none; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 5, 6, .78); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: modalFade .2s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  width: 100%; max-width: 720px; max-height: 88vh; overflow: auto;
  background: var(--bg2); border: 1px solid var(--line2); border-radius: 16px;
  position: relative; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .7);
  animation: modalRise .25s cubic-bezier(.4, 0, .2, 1);
}
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line2); background: rgba(8, 9, 10, .6); color: var(--text);
  font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(255, 255, 255, .12); }
.modal-media img,
.modal-media video {
  width: 100%; aspect-ratio: 1600 / 790; object-fit: cover; display: block;
  border-radius: 16px 16px 0 0; background: #0b0c0e;
}
.modal-body { padding: 24px 26px 28px; }
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.modal-title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; text-align: left; margin: 0; }
.modal-tier {
  font-size: 11px; font-weight: 600; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px;
  color: var(--accent); border: 1px solid rgba(15, 182, 208, .35); background: rgba(15, 182, 208, .08);
}
.modal-desc { font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 18px; }
.modal-points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-points li { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.modal-points li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .modal-points { grid-template-columns: 1fr; } }

/* ── Buy / Coming-soon modal (testo) ──────────────────── */
.modal-card.modal-text { max-width: 560px; }
.modal-card.modal-text .modal-body { padding-top: 22px; }
.buy-card { width: 100%; height: auto; display: block; border-radius: 16px 16px 0 0; }
.buy-badge {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent2);
  border: 1px solid rgba(15, 182, 208, .35); background: rgba(15, 182, 208, .08);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.buy-title { font-size: 20px !important; margin-bottom: 10px !important; }
.buy-note { font-size: 13px; color: var(--muted2); margin-top: 4px; }
.buy-action { margin-top: 18px; }
