﻿/* Dark theme (default). Every colour of the site goes through these variables. */
:root {
  color-scheme: dark;
  --bg: #030814; --bg2: #071230; --card: rgba(9, 22, 56, .72); --line: rgba(64, 160, 255, .22); --line-hi: rgba(0, 229, 255, .6);
  --blue: #1e6bff; --cyborg: #0a3d91; --cyan: #00e5ff; --text: #eaf3ff; --dim: #8ea3c2; --red: #ff2e4d;
  --ok: #3dffb0; --avviso: #ffb547; --errore-testo: #ffb3bf;
  --barra: rgba(3, 8, 20, .75); --campo: rgba(3, 8, 20, .7); --hover: rgba(0, 229, 255, .07); --attivo: rgba(0, 229, 255, .14);
  --riga: rgba(64, 160, 255, .1); --alone: rgba(30, 107, 255, .25); --griglia: rgba(0, 229, 255, .035);
  --velo: rgba(3, 8, 20, .4); --su-primario: #021026;
}

/* Light theme: chosen with the switch next to IT/EN (data-theme on <html>, see ThemeService and index.html) */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6fb; --bg2: #ffffff; --card: rgba(255, 255, 255, .92); --line: rgba(30, 80, 160, .18); --line-hi: rgba(0, 110, 170, .55);
  --blue: #1e5bd8; --cyborg: #0a3d91; --cyan: #0072ad; --text: #0c1a33; --dim: #56677f; --red: #d3203a;
  --ok: #0e8f5a; --avviso: #b86e00; --errore-testo: #9c1027;
  --barra: rgba(255, 255, 255, .85); --campo: #ffffff; --hover: rgba(0, 114, 173, .07); --attivo: rgba(0, 114, 173, .12);
  --riga: rgba(30, 80, 160, .1); --alone: rgba(30, 91, 216, .10); --griglia: rgba(0, 80, 160, .045);
  --velo: rgba(243, 246, 251, .55); --su-primario: #ffffff;
}
/* The chrome title is white metal on dark: on light it becomes dark steel */
html[data-theme="light"] .chrome { background: linear-gradient(180deg, #0c1a33 0%, #2b4a78 45%, #0c1a33 60%, #3b5a86 100%); -webkit-background-clip: text; background-clip: text; filter: none; }
html[data-theme="light"] .grain { opacity: .12; }
html[data-theme="light"] .hero-bg { opacity: .18; }

/* Light/dark switch next to IT/EN: ☾ [track with knob] ☀ */
.theme-switch { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--dim); font-size: 14px; line-height: 1; }
.theme-track { position: relative; width: 34px; height: 18px; border-radius: 9px; border: 1px solid var(--line-hi); background: var(--campo); transition: background-color .2s; }
.theme-knob { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); transition: transform .2s; }
.theme-switch.on .theme-knob { transform: translateX(16px); }
.theme-switch:hover .theme-track { background: var(--attivo); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Exo 2", sans-serif; font-size: 16px; line-height: 1.6;
  background-image: radial-gradient(ellipse 80% 50% at 70% -10%, var(--alone), transparent 60%),
    linear-gradient(var(--griglia) 1px, transparent 1px), linear-gradient(90deg, var(--griglia) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px; }
::selection { background: var(--cyan); color: #000; }
a { color: inherit; text-decoration: none; }
.grain { pointer-events: none; position: fixed; inset: 0; z-index: 50; opacity: .5; background: repeating-linear-gradient(0deg, rgba(0,0,0,.15) 0 1px, transparent 1px 3px); }
.dim { color: var(--dim); } .small { font-size: 13px; }
.eyebrow { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--cyan); }
h1, h2, h3 { font-family: "Orbitron", sans-serif; margin: 0; }
h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 10px 0 36px; }
h3 { font-size: 18px; letter-spacing: .03em; }

/* Discount strip above the header, on every page */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 28px; padding: 14px 6vw; background: var(--barra); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-family: Orbitron; font-weight: 900; letter-spacing: .12em; font-size: 15px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 16px rgba(0, 229, 255, .5); }
.brand b { color: var(--cyan); margin-left: 6px; }
.links { display: flex; gap: 6px; margin-left: auto; }
.links a { padding: 8px 12px; color: var(--dim); font-size: 15px; transition: color .2s, background-color .2s; }
.links a:hover { color: var(--text); background: var(--hover); }
/* Language dropdown: the list opens on hover or when the box has focus (tap) */
.lang { position: relative; border: 1px solid var(--line); cursor: pointer; outline: none; }
.lang-current { display: block; padding: 6px 10px; color: var(--cyan); font-family: "JetBrains Mono"; font-size: 12px; }
.lang-items { display: none; position: absolute; right: -1px; top: 100%; min-width: 130px; z-index: 60; background: var(--bg2); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.lang:hover .lang-items, .lang:focus-within .lang-items { display: flex; flex-direction: column; }
.lang-items button { background: none; border: 0; text-align: left; color: var(--dim); padding: 8px 12px; cursor: pointer; font-size: 14px; }
.lang-items button:hover { background: var(--hover); color: var(--text); }
.lang-items button.on { background: var(--attivo); color: var(--cyan); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; font-family: "Exo 2"; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid var(--line-hi); color: var(--text); background: transparent;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: background-color .2s, box-shadow .2s, transform .12s; }
.btn:hover:not(:disabled) { background: var(--attivo); box-shadow: 0 0 24px rgba(0, 229, 255, .35); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: wait; }
.btn.primary { background: linear-gradient(90deg, var(--blue), var(--cyan)); color: var(--su-primario); border: 0; }
.btn.primary:hover:not(:disabled) { box-shadow: 0 0 30px rgba(0, 229, 255, .6); }
.btn.sm { padding: 9px 16px; font-size: 14px; } .btn.full { width: 100%; }

.hero { position: relative; overflow: hidden; min-height: 82vh; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background: url("../img/hero-bg.jpg") center/cover; opacity: .35; filter: saturate(.6) hue-rotate(-10deg); animation: zoom 18s ease-out forwards; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 25%, var(--velo) 70%, var(--bg)); }
@keyframes zoom { from { transform: scale(1.12); } to { transform: none; } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; width: 100%; padding: 80px 6vw; }
.hero-copy > * { animation: rise .7s both; } .hero-copy > *:nth-child(2) { animation-delay: .1s; } .hero-copy > *:nth-child(3) { animation-delay: .2s; } .hero-copy > *:nth-child(4) { animation-delay: .3s; } .hero-copy > *:nth-child(5) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.chrome { font-size: clamp(44px, 7vw, 92px); line-height: 1.02; letter-spacing: .04em; margin: 14px 0 10px;
  background: linear-gradient(180deg, #fff 0%, #cfe0f5 38%, #3b5a86 52%, #eef5ff 64%, #7f98bb 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(0, 229, 255, .35)); }
.slogan { font-family: Orbitron; font-size: clamp(18px, 2vw, 24px); color: var(--cyan); margin: 0 0 18px; }
.sub { color: var(--dim); max-width: 580px; font-size: 17px; margin: 0 0 32px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-inner.with-trailer { grid-template-columns: 1fr 1.1fr; }
.hero-trailer { position: relative; aspect-ratio: 16/9; border: 1px solid rgba(0, 229, 255, .45); background: #000; box-shadow: 0 0 70px rgba(0, 229, 255, .18), inset 0 0 0 1px rgba(0, 229, 255, .1); animation: rise .8s .3s both; }
.hero-trailer video { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-trailer .hud { position: absolute; width: 18px; height: 18px; border: 2px solid var(--cyan); z-index: 2; pointer-events: none; }
.hero-trailer .tl { top: -6px; left: -6px; border-right: 0; border-bottom: 0; } .hero-trailer .tr { top: -6px; right: -6px; border-left: 0; border-bottom: 0; }
.hero-trailer .bl { bottom: -6px; left: -6px; border-right: 0; border-top: 0; } .hero-trailer .br { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.hero-trailer .watch { position: absolute; right: 18px; top: 18px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 0 24px rgba(0, 229, 255, .45); }
.hero-badge { position: relative; width: min(360px, 70vw); aspect-ratio: 1; justify-self: center; }
.hero-badge img { position: absolute; inset: 14%; width: 72%; border-radius: 50%; box-shadow: 0 0 60px rgba(0, 229, 255, .5), 0 0 0 4px #8fa3bb, 0 0 0 8px #0d1626; }
.ring { position: absolute; border-radius: 50%; }
.r1 { inset: 8%; border: 3px dashed rgba(170, 195, 220, .7); animation: spin 14s linear infinite; }
.r2 { inset: 3%; border: 4px solid transparent; border-top-color: var(--cyan); border-bottom-color: var(--blue); filter: drop-shadow(0 0 10px var(--cyan)); animation: spin 5s linear infinite reverse; }
.r3 { inset: -4%; border: 2px solid rgba(64, 160, 255, .25); border-left-color: var(--red); animation: spin 9s linear infinite; }
.teeth { position: absolute; inset: -10%; border-radius: 50%; background: repeating-conic-gradient(rgba(150, 180, 210, .45) 0 3deg, transparent 3deg 12deg);
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 65%, #000 70%, transparent 71%); mask: radial-gradient(circle, transparent 64%, #000 65%, #000 70%, transparent 71%); animation: spin 30s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 6vw 34px 3vw; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.stat:last-child { border-right: 0; }
.stat b { font-family: Orbitron; font-size: 40px; color: var(--cyan); }
.stat span { color: var(--dim); font-size: 14px; }

.section { padding: 110px 6vw; }
.section.narrow { max-width: 900px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); padding: 28px; position: relative; backdrop-filter: blur(12px); transition: border-color .25s, transform .25s; }
.card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 18px; height: 18px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.card:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.compare-wrap { padding: 0; overflow-x: auto; margin: 26px 0 14px; }
.compare { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.compare tbody th { color: var(--dim); font-weight: 500; white-space: nowrap; }
.compare .sds { background: var(--hover); color: var(--text, #e6f1ff); font-weight: 600; }
.compare thead .sds { color: var(--cyan); border-top: 2px solid var(--cyan); }
.compare tbody tr { transition: background-color .2s; }
.compare tbody tr:hover { background: var(--hover); }
#compare .btn { margin-top: 18px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why { animation: rise .6s both; }
.why .num { font-family: "JetBrains Mono"; color: var(--blue); font-size: 13px; }
.why h3 { margin: 10px 0 8px; } .why p { color: var(--dim); margin: 0; }

.tabs { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); width: fit-content; margin-bottom: 28px; }
.tabs button { background: none; border: 0; border-right: 1px solid var(--line); color: var(--dim); padding: 9px 16px; cursor: pointer; font-family: "Exo 2"; font-size: 14px; transition: color .2s, background-color .2s; }
.tabs button:last-child { border-right: 0; }
.tabs button.on, .tabs button:hover { color: var(--cyan); background: var(--attivo); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.show-bar { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.show-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 0 14px; background: var(--campo); color: var(--dim); min-width: 320px; transition: border-color .2s; }
.show-search:focus-within { border-color: var(--cyan); color: var(--cyan); }
.show-search input { background: none; border: 0; outline: 0; color: var(--text, #e6f1ff); font: inherit; padding: 11px 0; width: 100%; }
.tabs .count { font-family: "JetBrains Mono", monospace; font-size: 11px; opacity: .7; margin-left: 4px; }
.thumb { padding: 0; margin: 0; overflow: hidden; text-align: left; cursor: pointer; color: inherit; font: inherit; display: block; width: 100%; transition: transform .25s, border-color .25s; }
.thumb:hover { transform: translateY(-3px); border-color: var(--cyan); }
.thumb .poster { position: relative; display: block; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s, opacity .3s; opacity: .9; }
.thumb:hover img { transform: scale(1.04); opacity: 1; }
.thumb .play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 229, 255, .18); border: 1px solid var(--cyan); color: var(--cyan); backdrop-filter: blur(6px); transition: transform .25s, background-color .25s; }
.thumb:hover .play { transform: scale(1.12); background: rgba(0, 229, 255, .32); }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; font-family: "JetBrains Mono", monospace; font-size: 11px; background: rgba(2, 6, 16, .8); padding: 3px 7px; }
.thumb .cap { display: flex; justify-content: space-between; gap: 10px; padding: 14px 18px; font-size: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(1, 4, 12, .86); backdrop-filter: blur(14px); display: grid; place-items: center; padding: 24px; outline: 0; animation: fadeUp .2s ease; }
.lightbox-inner { width: min(1180px, 100%); border: 1px solid var(--line); background: #040b1a; box-shadow: 0 0 60px var(--attivo); }
.lightbox-head, .lightbox-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.lightbox video { width: 100%; aspect-ratio: 16/9; max-height: calc(100vh - 150px); display: block; background: #000; }
.lightbox-inner { max-height: calc(100vh - 48px); }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--dim); width: 34px; height: 34px; cursor: pointer; transition: color .2s, border-color .2s; }
.icon-btn:hover { color: var(--cyan); border-color: var(--cyan); }

.consent { display: grid; gap: 12px; padding: 18px 22px; margin-bottom: 22px; max-width: 860px; }
.consent label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.5; }
.consent input[type=checkbox] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cyan, #00e5ff); flex-shrink: 0; cursor: pointer; }
.consent p { margin: 0; }
.warn { color: var(--avviso); }
.billing-toggle { display: inline-flex; border: 1px solid var(--line); margin-bottom: 18px; background: var(--campo); }
.billing-toggle button { background: none; border: 0; color: var(--dim); padding: 10px 20px; font: inherit; cursor: pointer; transition: background-color .2s, color .2s; display: inline-flex; gap: 8px; align-items: center; }
.billing-toggle button.on { background: var(--attivo); color: var(--cyan); }
.billing-toggle .save { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--su-primario); background: var(--ok); padding: 3px 7px; }
.trial-badge { display: inline-block; align-self: flex-start; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ok); border: 1px solid rgba(61, 255, 176, .4); padding: 4px 10px; margin-bottom: 8px; }
.consent .field { display: grid; gap: 6px; max-width: 420px; }
.change-plan { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--attivo); display: grid; gap: 10px; }
.change-options { display: flex; flex-wrap: wrap; gap: 10px; }
.change-confirm { padding: 16px 18px; display: grid; gap: 8px; animation: fadeUp .25s ease; }
.change-confirm p { margin: 0; line-height: 1.5; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; margin-bottom: 18px; }
.price-grid--due { grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; }
.plan { display: flex; flex-direction: column; padding: 34px; }
.plan.hot { border-color: var(--cyan); box-shadow: 0 0 50px rgba(0, 229, 255, .18); background: linear-gradient(180deg, rgba(30, 107, 255, .22), var(--card)); }
.plan .tag { position: absolute; top: -13px; right: 24px; background: var(--cyan); color: var(--su-primario); font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; padding: 4px 10px; }
.plan h3 { font-size: 22px; } .plan p { margin: 8px 0 18px; }
.amount b { font-family: Orbitron; font-size: 46px; } .amount span { color: var(--dim); margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 30px; flex: 1; }
.plan li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid var(--riga); font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 15px; width: 12px; height: 2px; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }

.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; transition: color .2s; }
.faq summary::after { content: "+"; font-family: Orbitron; color: var(--cyan); }
.faq[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--cyan); }
.faq p { color: var(--dim); margin: 0 0 18px; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--dim); }
.form input, .form textarea, .consent .input { background: var(--campo); border: 1px solid var(--line); color: var(--text); padding: 12px 14px; font-family: inherit; font-size: 15px; outline: none; transition: border-color .2s; }
.form input:focus, .form textarea:focus, .consent .input:focus { border-color: var(--cyan); }
.ok { color: var(--ok); margin: 0; } .error { color: var(--red); margin: 0 0 12px; }

.pay { text-align: center; min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.spinner { width: 46px; height: 46px; border: 3px solid var(--line); border-top-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; }
.footer { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 14px; padding: 34px 6vw; border-top: 1px solid var(--line); font-size: 14px; }
.footer-powered { flex-basis: 100%; text-align: right; }

.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; font-family: monospace; color: var(--cyan); }
.boot img { width: 110px; border-radius: 50%; box-shadow: 0 0 40px rgba(0, 229, 255, .5); animation: spin 3s linear infinite; }
.boot h1 { font-family: Orbitron, sans-serif; font-size: 34px; letter-spacing: .12em; color: var(--text); margin: 6px 0 0; }
.boot .boot-claim { font-family: Orbitron, sans-serif; color: var(--cyan); font-size: 18px; margin: 0; }
.boot .boot-sub { color: var(--dim); max-width: 560px; font-family: "Exo 2", sans-serif; letter-spacing: 0; margin: 0; }
.boot .boot-loading { letter-spacing: .3em; font-size: 13px; opacity: .7; margin-top: 8px; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 12px 20px; background: var(--red); color: #fff; z-index: 100; }
#blazor-error-ui .dismiss { cursor: pointer; float: right; } #blazor-error-ui .reload { color: #fff; text-decoration: underline; }

/* Longer labels (German): a tighter header on medium screens */
@media (max-width: 1500px) {
  .topbar { gap: 12px; }
}
@media (max-width: 1000px) {
  .links { display: none; } .lang { margin-left: auto; }
  .hero-inner, .hero-inner.with-trailer { grid-template-columns: 1fr; } .hero-badge { width: 240px; }
  .why-grid, .price-grid, .price-grid--due, .video-grid { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 6vw; }
}
@media (max-width: 560px) {
  .topbar { gap: 12px; padding: 12px 4vw; }
  .brand span, .brand { font-size: 12px; } .brand img { width: 32px; height: 32px; }
  [data-testid=nav-cta] { display: none; }
  .show-search { min-width: 0; width: 100%; }
  body { overflow-x: hidden; }
}

.link { color: var(--dim); font-size: 14px; transition: color .2s; } .link:hover { color: var(--cyan); }
.auth { min-height: 70vh; }
.auth .form { max-width: 460px; }
.sub { margin-bottom: 20px; } .sub-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.status { font-family: "JetBrains Mono"; font-size: 12px; text-transform: uppercase; letter-spacing: .15em; padding: 4px 10px; border: 1px solid var(--red); color: var(--red); }
.status.on { border-color: var(--ok); color: var(--ok); }
.license { display: flex; gap: 12px; align-items: center; margin: 8px 0 12px; flex-wrap: wrap; }
.license code { font-family: "JetBrains Mono"; font-size: 18px; color: var(--cyan); background: var(--campo); border: 1px solid var(--line); padding: 10px 14px; letter-spacing: .08em; }

.legal-links { display: flex; flex-direction: column; gap: 6px; }
.footer-support { display: flex; flex-direction: column; gap: 6px; margin-left: 40px; margin-right: auto; }
.legal-note { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.legal h3 { margin: 34px 0 10px; font-size: 17px; }
/* Legal texts use line breaks for their bullet lists */
.legal p { white-space: pre-line; }
.legal .placeholder { color: var(--dim); border-left: 2px solid var(--line-hi); padding: 10px 16px; background: var(--hover); margin: 0; font-family: "JetBrains Mono"; font-size: 13px; }

/* ---- Playground: the editor and the live result run on the server, shown here in a frame ---- */
.play-sub { max-width: 760px; }
.play-frame { display: block; width: 100%; height: 820px; border: 0; background: transparent; }
.play-note { margin: 16px 0 0; }

/* The page inside the frame (/play, rendered by the server) */
body.play-body { background: transparent; background-image: none; padding: 2px; }
.play-examples { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.play-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.play-pane { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px; }
.play-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.play-code { flex: 1; min-height: 520px; width: 100%; resize: vertical; padding: 16px; border: 1px solid var(--line); background: var(--campo); color: var(--text);
  font-family: "JetBrains Mono", monospace; font-size: 13.5px; line-height: 1.6; white-space: pre; overflow: auto; tab-size: 4; }
.play-code:focus { outline: none; border-color: var(--line-hi); box-shadow: 0 0 24px rgba(0, 229, 255, .18); }
.play-errors { margin: 0; padding: 12px 14px 12px 30px; border: 1px solid rgba(255, 46, 77, .5); background: rgba(255, 46, 77, .08); color: var(--errore-testo); font-size: 14px; max-height: 180px; overflow: auto; }
.play-result { flex: 1; min-height: 520px; padding: 20px; border: 1px solid var(--line); overflow: auto;
  background: var(--sds-color-bg, #0b1020); color: var(--sds-color-text, var(--text)); font-family: var(--sds-font-family, inherit); }
.play-result > * { max-width: 100%; margin: 0 12px 14px 0; vertical-align: middle; }
.play-crash { margin: 0; color: var(--errore-testo); }
@media (max-width: 900px) { .play-grid { grid-template-columns: 1fr; } .play-frame { height: 1500px; } }

/* 14-day trial highlight, at the top of the pricing section (applies to the subscription plans) */
.trial-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 18px; text-align: center;
  background: rgba(61, 255, 176, .08); border: 1px solid rgba(61, 255, 176, .4); border-radius: 8px; padding: 12px 18px; }
.trial-top .trial-top-badge { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--su-primario); background: var(--ok); padding: 5px 12px; border-radius: 4px; }
.trial-top .trial-top-line { font-size: 16px; font-weight: 600; color: var(--text); }

/* The one-time licence tiers, shown above the subscription plans */
.super-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 20px; text-align: center; }
.super-offer .super-tag { background: var(--cyan); color: var(--su-primario); font-family: "JetBrains Mono"; font-weight: 700; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; padding: 6px 14px; border-radius: 4px; }
.super-offer .super-line { font-size: 18px; font-weight: 600; color: var(--text); }
.license-grid { margin-bottom: 28px; }
.license code { word-break: break-all; }

/* Licence order: a narrow centred card with the form, then the bank details */

.order-form { display: flex; flex-direction: column; gap: 16px; padding: 26px; max-width: 520px; margin: 0 auto; text-align: left; border-color: var(--cyan); box-shadow: 0 0 40px rgba(0, 229, 255, .15); }
.order-form p { margin: 0; }
.order-form .field { display: grid; gap: 6px; }
.order-form .input { background: var(--campo); border: 1px solid var(--line); color: var(--text); padding: 12px 14px; font-family: inherit; font-size: 15px; outline: none; }
.order-form .input:focus { border-color: var(--cyan); }
.order-terms { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.5; }
.order-terms input[type=checkbox] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cyan, #00e5ff); flex-shrink: 0; cursor: pointer; }
.order-ok { color: var(--ok); }
.renew-title { margin: 40px 0 6px; }
.order-form { margin-top: 24px; }
.bank-transfer { display: grid; gap: 6px; padding: 16px 18px; border: 1px dashed var(--ok); background: var(--attivo); }
.bank-transfer p { margin: 0; }
.bank-transfer .mono, .admin-table .mono { font-family: "JetBrains Mono", monospace; }
.narrow-form { max-width: 420px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
/* Installation guide: one slide at a time, previous / next and dots */
.guide-slide { display: flex; flex-direction: column; gap: 12px; min-height: 300px; }
.guide-slide p { margin: 0; line-height: 1.6; }
.guide-step { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .15em; color: var(--cyan); }
.guide-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.guide-dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.guide-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-hi); background: none; padding: 0; cursor: pointer; }
.guide-dot.on { background: var(--cyan); border-color: var(--cyan); }
.guide-slide pre { overflow-x: auto; max-width: 100%; }

/* /docs: every component with description, parameters, code to copy and the image of the result */
.docs-sub { max-width: 760px; }
.docs-note { margin-top: -6px; }
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; margin-top: 28px; }
.docs-index { position: sticky; top: 90px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; gap: 12px; }
.docs-index .show-search { min-width: 0; }
.docs-index nav { overflow-y: auto; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.docs-index nav a { color: var(--dim); text-decoration: none; padding: 5px 14px; font-family: "JetBrains Mono", monospace; font-size: 13px; border-left: 2px solid transparent; margin-left: -1px; transition: color .2s, border-color .2s; }
.docs-index nav a:hover, .docs-index nav a.on { color: var(--cyan); border-left-color: var(--cyan); }
.docs-list { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.docs-card { scroll-margin-top: 90px; }
.docs-card:hover { transform: none; }
.docs-card h3 { font-family: Orbitron, sans-serif; font-size: 20px; letter-spacing: .04em; margin: 0 0 14px; overflow-wrap: anywhere; }
.docs-poster { display: block; width: 100%; max-height: 360px; object-fit: contain; background: var(--campo); border: 1px solid var(--line); margin-bottom: 16px; }
.docs-text { color: var(--dim); font-size: 15px; overflow-wrap: anywhere; }
.docs-text p { margin: 0 0 12px; }
.docs-text code { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--cyan); background: var(--campo); padding: 1px 5px; }
.docs-text table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; display: block; overflow-x: auto; }
.docs-text th, .docs-text td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs-text th { color: var(--text); font-weight: 600; }
.docs-text ul { margin: 0 0 12px; padding-left: 20px; }
.docs-code { position: relative; margin: 4px 0 16px; }
.docs-code pre { margin: 0; padding: 16px 18px; padding-right: 90px; overflow-x: auto; background: var(--campo); border: 1px solid var(--line); }
.docs-code code { font-family: "JetBrains Mono", monospace; font-size: 13px; line-height: 1.55; color: var(--text); white-space: pre; }
.docs-copy { position: absolute; top: 8px; right: 8px; width: auto; height: auto; padding: 5px 12px; font-family: "Exo 2"; font-size: 13px; background: var(--bg2); }
.docs-copy:hover { color: var(--cyan); border-color: var(--line-hi); }
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-index { position: static; max-height: none; }
  .docs-index nav { flex-direction: row; flex-wrap: wrap; border-left: 0; max-height: 160px; }
  .docs-index nav a { border-left: 0; padding: 4px 10px; }
}

/* Visit counter on the /admin page */
.visits { margin-top: 0; }
.visits h3 { margin-top: 0; }
.visits-numbers { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 12px 0 20px; }
.visits-numbers div { display: flex; flex-direction: column; }
.visits-numbers b { font-size: 26px; }
.visits-numbers span { color: var(--dim, #9a9fb2); font-size: 13px; }
.visits-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.visits-columns > div { display: flex; flex-direction: column; gap: 20px; }
.admin-table .num { text-align: right; }
.admin-test-email { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.admin-test-email input { flex: 1; min-width: 220px; }

/* Special offer in alternate months: banner on every page, struck-through list price, saving line */
.offer-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--cyan); color: var(--su-primario); font-size: 14px; text-align: center; }
.offer-banner:hover { filter: brightness(1.08); }
.offer-banner-tag { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; border: 1px solid currentColor; padding: 2px 8px; border-radius: 4px; }
.offer-banner s { opacity: .7; }
.plan .save-line { color: var(--ok); margin: -6px 0 14px; }
.amount-old { color: var(--dim); font-size: 22px; margin-right: 6px; }
