:root {
  --primary: #37474f;
  --primary-dark: #263238;
  --primary-light: #455a64;
  --accent: #ee5c27;
  --accent-hover: #d14e1c;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --text: #1c2529;
  --muted: #5c6b73;
  --line: #e3e8eb;
  --ok: #2e7d32;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(38, 50, 56, 0.08);
  --header-h: 72px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  isolation: isolate;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  cursor: pointer;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 36px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px 5px;
  box-sizing: content-box;
}

.logo .logo-text {
  height: 26px;
  width: auto;
  max-width: min(160px, 28vw);
  padding: 6px 8px;
  border-radius: 8px;
}

@media (max-width: 600px) and (orientation: portrait) {
  .logo .logo-text {
    display: none;
  }

  .header-inner {
    gap: 0.45rem;
  }

  .header-actions {
    gap: 0.4rem;
    margin-left: auto;
  }
}

.logo:hover {
  text-decoration: none;
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
}

.nav-sub-wrap {
  position: relative;
}

.nav-sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: inherit;
  cursor: pointer;
  padding: 0;
}

.nav-sub-toggle::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.85;
}

.nav-sub-wrap.is-open .nav-sub-toggle::after,
.nav-sub-wrap:hover .nav-sub-toggle::after,
.nav-sub-wrap:focus-within .nav-sub-toggle::after {
  transform: rotate(-135deg) translateY(-1px);
}

.nav-sub-toggle:hover,
.nav-sub-wrap:has([aria-current="page"]) .nav-sub-toggle {
  color: #fff;
}

.nav-sub {
  display: none;
}

@media (min-width: 901px) {
  .site-nav {
    align-self: stretch;
  }

  .nav-sub-wrap {
    display: flex;
    align-items: center;
    align-self: stretch;
  }

  .nav-sub {
    display: block;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 13.5rem;
    background: var(--primary-dark);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    padding: 0.25rem 0 0.35rem;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transform-origin: top left;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  }

  .nav-sub-wrap:hover .nav-sub,
  .nav-sub-wrap:focus-within .nav-sub,
  .nav-sub-wrap.is-open .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav .nav-sub a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.92);
    background: var(--primary-dark);
    border-radius: 0;
    font-size: 0.95rem;
  }

  .site-nav .nav-sub a:hover,
  .site-nav .nav-sub a:focus-visible,
  .site-nav .nav-sub a[aria-current="page"] {
    background: var(--primary-light);
    color: #fff;
    outline: none;
  }
}

html:not(.is-logged-in) .site-nav a[href$="documentazione.html"],
html:not(.is-logged-in) .site-nav a[href$="documentation.html"],
html:not(.is-logged-in) .site-footer a[href$="documentazione.html"],
html:not(.is-logged-in) .site-footer a[href$="documentation.html"],
html:not(.is-logged-in) .site-footer li:has(a[href$="documentazione.html"]),
html:not(.is-logged-in) .site-footer li:has(a[href$="documentation.html"]) {
  display: none;
}

.nav-account {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  flex-shrink: 0;
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  box-shadow: 0 0 0 2px var(--primary-dark);
}

.cart-badge[hidden] {
  display: none;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #fff;
}

.icon-btn svg {
  display: block;
}

.lang-menu {
  position: relative;
  z-index: 2;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 0.35rem 0.65rem 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  min-height: 36px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.lang-switch::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.85;
  transition: transform 0.18s ease;
}

.lang-menu.is-open .lang-switch::after {
  transform: rotate(-135deg) translateY(-1px);
}

.lang-switch:hover,
.lang-switch:focus-visible {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  outline: none;
}

.lang-menu-list {
  display: block;
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 11.5rem;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(38, 50, 56, 0.16);
  padding: 0.4rem;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.lang-menu.is-open .lang-menu-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  color: var(--text);
  font-size: 0.9rem;
  border-radius: 7px;
  transition: background 0.12s ease, color 0.12s ease;
}

.lang-menu-list a:hover,
.lang-menu-list a:focus-visible,
.lang-menu-list a.is-active,
.lang-menu-list a[aria-current="true"] {
  background: #eceff1;
  text-decoration: none;
  color: var(--primary-dark);
  outline: none;
}

.lang-menu-list a[aria-current="true"]::after {
  content: "";
  width: 0.45rem;
  height: 0.75rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.btn,
.btn-ghost,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.btn {
  background: var(--accent);
  color: #fff;
}

.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--primary-dark);
}

.btn-light:hover {
  background: #eef3f6;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--primary);
  text-decoration: none;
  color: var(--primary);
}

.btn.btn-outline:hover {
  border-color: var(--accent-hover);
  color: #fff;
}

.hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(238, 92, 39, 0.28), transparent 50%),
    linear-gradient(135deg, #1c2529 0%, #37474f 55%, #455a64 100%);
  color: #fff;
  padding: 5.5rem 0 4.5rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.15;
  max-width: 18ch;
}

.hero p.lead {
  margin: 0 0 1.8rem;
  font-size: 1.15rem;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f07b2b;
  margin-bottom: 0.8rem;
}

.section {
  padding: 4.2rem 0;
}

.section-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
}

.section-sub {
  margin: 0 auto 2.4rem;
  text-align: center;
  color: var(--muted);
  max-width: 42rem;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1.25rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.card h3 {
  margin: 0.6rem 0 0.4rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fde8dc;
  color: var(--accent);
  display: grid;
  place-items: center;
}

.icon-badge svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.product-panel {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.home-board-note {
  text-align: center;
  margin: -1.2rem auto 1.8rem;
  max-width: 40rem;
  color: var(--muted);
}

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.4rem 3rem;
  align-items: center;
}

.feature-row:nth-child(odd) .feature-media {
  order: -1;
}

.feature-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.feature-copy p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.feature-copy p:last-child {
  margin-bottom: 0;
}

.feature-media {
  margin: 0;
  background: #eceff1;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  display: block;
  background: #eceff1;
}

img.zoomable {
  cursor: zoom-in;
}

img.zoomable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(28, 37, 41, 0.88);
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 3.5rem 1.25rem 1.25rem;
}

.lightbox-stage img {
  max-width: min(1100px, 100%);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-dark);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #eceff1;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel-track[data-index="1"] { transform: translateX(-100%); }
.carousel-track[data-index="2"] { transform: translateX(-200%); }
.carousel-track[data-index="3"] { transform: translateX(-300%); }
.carousel-track[data-index="4"] { transform: translateX(-400%); }
.carousel-track[data-index="5"] { transform: translateX(-500%); }

.carousel-track figure {
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
}

.carousel-track img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #eceff1;
}

.carousel-nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem;
  pointer-events: none;
}

.carousel-nav button {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(38, 50, 56, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  border: 0;
  background: #cfd8dc;
  cursor: pointer;
  padding: 0;
}

.dot.is-active {
  width: 20px;
  background: var(--accent);
}

.muted {
  color: var(--muted);
}

.suite-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.suite-card {
  display: flex;
  flex-direction: column;
}

.suite-card .kicker {
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.suite-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
}

.suite-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.suite-card .suite-meta {
  margin-top: auto;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.workflow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.workflow > li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.workflow > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.35rem;
  right: -0.95rem;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
  transform: rotate(45deg);
  z-index: 1;
}

.workflow-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}

.workflow-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.workflow h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.workflow p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-band {
  background: #eceff1;
  text-align: center;
  border-radius: 16px;
  padding: 2.4rem 1.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.1rem 0 0;
}

.youtube-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
}

.youtube-heading .youtube-logo {
  width: 2rem;
  height: 2rem;
  color: #ff0000;
  flex-shrink: 0;
}

.btn-youtube {
  background: #ff0000;
  color: #fff;
}

.btn-youtube:hover {
  background: #cc0000;
  color: #fff;
  text-decoration: none;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
}

.price-card.popular {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(238, 92, 39, 0.16);
  position: relative;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.7rem;
}

.price {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0.3rem 0 0;
  color: var(--primary-dark);
}

.period {
  color: var(--muted);
  margin: 0 0 1rem;
}

.price-card ul {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-card li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

.support {
  background: #eceff1;
  text-align: center;
}

.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.86);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h2 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.8rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.35rem 0;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.social {
  display: flex;
  gap: 0.8rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.social svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.page-hero {
  background: var(--primary-dark);
  color: #fff;
  padding: 3.2rem 0 2.4rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.page-hero p {
  margin: 0;
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.86);
}

.page-hero .badge {
  margin-bottom: 0.9rem;
}

.product-hero,
.coming-soon-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  gap: 2rem 2.5rem;
  align-items: center;
}

.product-hero .product-hero-copy p,
.coming-soon-hero .coming-soon-copy p {
  max-width: 36rem;
}

.product-hero-visual,
.coming-soon-visual {
  margin: 0;
}

.product-hero-visual img,
.coming-soon-visual img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.launch-track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 2.4rem;
  padding: 0;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.launch-track::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 1.7rem;
  height: 2px;
  background: var(--line);
}

.launch-track > li {
  padding: 1.2rem 1.3rem 1.3rem;
  position: relative;
}

.launch-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  display: block;
  margin-bottom: 0.85rem;
  background: var(--line);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--line);
  position: relative;
  z-index: 1;
}

.launch-track > li.is-done .launch-dot {
  background: var(--ok);
  box-shadow: 0 0 0 2px var(--ok);
}

.launch-track > li.is-current {
  background: #fff7f3;
}

.launch-track > li.is-current .launch-dot {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
  animation: launch-pulse 1.8s ease-out infinite;
}

.launch-track strong {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.launch-track > li.is-current strong {
  color: var(--accent);
}

.launch-track p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes launch-pulse {
  0% {
    box-shadow: 0 0 0 2px var(--accent), 0 0 0 0 rgba(238, 92, 39, 0.45);
  }
  70% {
    box-shadow: 0 0 0 2px var(--accent), 0 0 0 10px rgba(238, 92, 39, 0);
  }
  100% {
    box-shadow: 0 0 0 2px var(--accent), 0 0 0 0 rgba(238, 92, 39, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .launch-track > li.is-current .launch-dot {
    animation: none;
  }
}

.prose {
  max-width: 46rem;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 2rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose figure {
  position: relative;
  z-index: 0;
  margin: 1.25rem 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.prose figure img {
  width: 100%;
}

.prose figcaption {
  margin: 0;
  padding: 0.8rem 1rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
}

.legal-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1rem 0;
}

.legal-block h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.legal-block p {
  margin: 0;
  color: var(--muted);
}

.legal-block p + p,
.legal-block ul {
  margin-top: 0.75rem;
}

.legal-block ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.legal-block li {
  margin: 0.35rem 0;
}

.legal-block li::marker {
  color: var(--accent);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.7rem;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1rem 1.2rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-q::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
}

.faq-item.is-open .faq-q::after {
  content: "–";
}

.faq-a {
  display: none;
  padding: 0 1.2rem 1rem;
  color: var(--muted);
}

.faq-item.is-open .faq-a {
  display: block;
}

.contact-list {
  display: grid;
  gap: 0.8rem;
}

.contact-list a {
  font-weight: 600;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.1rem 3.4rem;
  margin: 0.7rem 0;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.note {
  background: #fff8e1;
  border-left: 4px solid #f9a825;
  padding: 0.9rem 1rem;
  border-radius: 0 8px 8px 0;
}

#download,
#lavagna,
#condivisione {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

#download .platforms {
  justify-content: center;
  margin: 1.25rem 0 0;
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  text-align: center;
  color: var(--text);
  font-weight: 650;
  box-shadow: 0 4px 16px rgba(38, 50, 56, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.platform svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.platform:hover {
  text-decoration: none;
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(238, 92, 39, 0.12);
  transform: translateY(-2px);
}

.platform:focus-visible {
  outline: 2px solid rgba(238, 92, 39, 0.45);
  outline-offset: 2px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem 5.5rem;
  margin: 1.4rem 0 0;
}

.store-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  min-width: 11.6rem;
}

.store-card .store-btn {
  justify-content: center;
}

.store-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.7rem 0.55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
}

.store-qr img {
  width: 9.25rem;
  height: 9.25rem;
  display: block;
}

.store-qr span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.store-qr:hover,
.store-qr:focus-visible {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--text);
}

.store-qr:focus-visible {
  outline: 2px solid rgba(238, 92, 39, 0.45);
  outline-offset: 2px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 11.6rem;
  padding: 0.55rem 1.15rem 0.55rem 0.9rem;
  border-radius: 10px;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  text-decoration: none;
  line-height: 1.15;
}

.store-btn:hover,
.store-btn:focus-visible {
  background: #2a2a2a;
  color: #fff;
  text-decoration: none;
  border-color: #2a2a2a;
}

.store-btn:focus-visible {
  outline: 2px solid rgba(238, 92, 39, 0.45);
  outline-offset: 2px;
}

.store-btn svg {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.store-btn span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
}

.store-btn small {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.store-btn strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.breadcrumbs {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.8rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
}

.not-found {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

@media (max-width: 1100px) {
  .suite-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .grid-3,
  .pricing,
  .footer-grid,
  .grid-2,
  .suite-grid,
  .workflow,
  .feature-row,
  .coming-soon-hero,
  .product-hero,
  .launch-track {
    grid-template-columns: 1fr;
  }

  .launch-track::before {
    display: none;
  }

  .coming-soon-visual,
  .product-hero-visual {
    max-width: 28rem;
    margin-inline: auto;
  }

  .feature-row .feature-media,
  .feature-row:nth-child(odd) .feature-media {
    order: -1;
  }

  .workflow > li:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 1.7rem;
    bottom: -1.05rem;
    transform: rotate(135deg);
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1rem 1.2rem;
    gap: 0.4rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-sub-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.7rem 0.4rem;
    min-height: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-sub-wrap.is-open .nav-sub {
    display: flex;
    flex-direction: column;
    padding: 0 0 0.35rem 0.75rem;
  }

  .nav-sub-wrap:hover .nav-sub-toggle::after,
  .nav-sub-wrap:focus-within .nav-sub-toggle::after {
    transform: rotate(45deg) translateY(-1px);
  }

  .nav-sub-wrap.is-open .nav-sub-toggle::after {
    transform: rotate(-135deg) translateY(-1px);
  }

  .nav-account {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.85rem 0.4rem 0.95rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    min-height: auto;
  }

  .nav-account-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.3;
  }

  .nav-account-link {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
  }

  .nav-account:hover,
  .nav-account[aria-current="page"] {
    text-decoration: none;
  }

  .nav-account:hover .nav-account-link,
  .nav-account[aria-current="page"] .nav-account-link {
    color: #fff;
  }

  .nav-account + a[href="/area/"],
  .nav-account + a[href="/area"] {
    display: none;
  }

  html:not(.is-logged-in) .site-nav a[href$="documentazione.html"],
  html:not(.is-logged-in) .site-nav a[href$="documentation.html"] {
    display: none;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .header-actions a[href="/register"],
  .header-actions a[href^="/register?"],
  .header-actions a[href$="/register"],
  .header-actions a[data-app-path="/register"] {
    display: none;
  }

  .header-actions a[href="/login"],
  .header-actions a[href="/login.html"],
  .header-actions a[href^="/login?"],
  .header-actions a[href^="/login.html?"],
  .header-actions a[href$="/login"],
  .header-actions a[href$="/login.html"],
  .header-actions a[href*="/login?"],
  .header-actions a[data-app-path="/login"] {
    display: inline-flex;
    background: var(--accent);
    color: #fff;
    border-color: transparent;
  }

  .hero {
    padding: 3.4rem 0 3rem;
  }

  .header-actions .btn,
  .header-actions .btn-ghost,
  .header-actions .icon-btn {
    min-height: 44px;
  }

  .header-actions .icon-btn {
    width: 44px;
  }

  .lang-menu-list {
    right: 0;
    left: auto;
  }

  .header-actions .lang-switch {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Auth, area riservata, tabelle */
.auth-card {
  max-width: 28rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.maintenance-page {
  min-height: calc(100vh - var(--header-h) - 7rem);
  display: flex;
  align-items: center;
}

.maintenance-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.2rem 2rem 1.8rem;
  box-shadow: var(--shadow);
}

.maintenance-card h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.2;
}

.maintenance-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 46rem;
  font-size: 1.05rem;
}

.maintenance-infographic {
  margin: 0 0 1.6rem;
  border-radius: 14px;
  overflow: hidden;
  background: #263238;
}

.maintenance-infographic img {
  width: 100%;
  height: auto;
}

.maintenance-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.maintenance-steps li {
  margin: 0;
}

.maintenance-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.maintenance-steps strong {
  display: block;
  margin-bottom: 0.3rem;
}

.maintenance-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.maintenance-support {
  margin: 1.6rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.maintenance-support a {
  font-weight: 600;
}

.maintenance-login {
  margin: 1.15rem 0 0;
}

.maintenance-login .btn {
  display: inline-flex;
}

.maintenance-login-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

body[data-page="maintenance"] .header-actions {
  position: relative;
  z-index: 4;
}

html.is-maintenance .cart-btn,
html.is-maintenance .auth-public-extra {
  display: none !important;
}

body[data-page="maintenance"] .site-nav,
body[data-page="maintenance"] .nav-toggle,
html.is-maintenance body[data-page="login"] .site-nav,
html.is-maintenance body[data-page="login"] .nav-toggle,
html.is-maintenance body[data-page="mfa"] .site-nav,
html.is-maintenance body[data-page="mfa"] .nav-toggle {
  display: none;
}

@media (max-width: 800px) {
  .maintenance-steps {
    grid-template-columns: 1fr;
  }

  .maintenance-card {
    padding: 1.5rem 1.15rem 1.3rem;
  }
}

.auth-card.trial-card {
  max-width: 36rem;
}

.trial-desc {
  margin: 0 0 1.25rem;
  color: var(--text);
}

.trial-card .btn {
  width: 100%;
}

.form {
  display: grid;
  gap: 0.9rem;
}

.form label,
.form-row label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form select,
.form textarea,
.qty-input,
#coupon-code {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
}

.form select,
.select-trigger {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) calc(50% - 0.12rem),
    calc(100% - 0.7rem) calc(50% - 0.12rem);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
  cursor: pointer;
}

.form select:hover,
.select-trigger:hover {
  border-color: #c5ced3;
}

.form input:focus,
.form select:focus,
.qty-input:focus,
.select-trigger:focus-visible {
  outline: 2px solid rgba(238, 92, 39, 0.35);
  border-color: var(--accent);
}

.form label:has(input[required]) > span:first-child::after,
.form .check:has(input[required]) > span::after {
  content: "\00a0*";
  color: #c62828;
}

.form input.is-invalid,
.form select.is-invalid,
.form textarea.is-invalid {
  border-color: #c62828;
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.12);
}

.form input.is-invalid:focus,
.form select.is-invalid:focus {
  outline-color: rgba(183, 28, 28, 0.28);
  border-color: #c62828;
}

.form label.is-invalid > span:first-child {
  color: #b71c1c;
}

.form .check.is-invalid {
  padding: 0.55rem 0.7rem;
  margin-left: -0.7rem;
  margin-right: -0.7rem;
  border-radius: 8px;
  background: #fff5f5;
  outline: 1px solid #f5c6c2;
  color: #b71c1c;
}

.captcha.is-invalid {
  border-color: #f5c6c2;
  background: #fff5f5;
}

/* Dropdown personalizzata (sostituisce select native) */
.custom-select {
  position: relative;
  z-index: 1;
}

.custom-select.is-open {
  z-index: 50;
}

.custom-select select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
}

.select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 2.2rem 0.7rem 0.8rem;
  font: inherit;
  background-color: #fff;
  color: var(--text);
  text-align: left;
  min-height: 2.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-select.is-open .select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(238, 92, 39, 0.2);
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 0.7rem) calc(50% + 0.12rem),
    calc(100% - 1.05rem) calc(50% + 0.12rem);
}

.select-menu {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  background: #fff;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(38, 50, 56, 0.18);
  padding: 0.35rem;
  z-index: 60;
  max-height: 14rem;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  isolation: isolate;
}

.custom-select.is-open .select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.select-option {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  padding: 0.55rem 0.75rem;
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
}

.select-option:hover,
.select-option:focus-visible,
.select-option.is-active {
  background: #eceff1;
  color: var(--primary-dark);
  outline: none;
}

.select-option[aria-selected="true"] {
  background: rgba(238, 92, 39, 0.1);
  color: var(--accent-hover);
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  align-items: end;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.captcha {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem;
  background: #f6f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.captcha-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.captcha-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.captcha-image {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  position: relative;
  width: 200px;
  max-width: calc(100% - 3.2rem);
  height: 56px;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  flex: 0 1 auto;
  color: #263238;
}

.captcha-ch {
  display: inline-block;
  font-family: Menlo, Consolas, "Courier New", monospace;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  padding: 0 2px;
  color: #263238;
  -webkit-user-select: none;
  user-select: none;
}

.captcha-ch:nth-child(even) {
  color: #ee5c27;
  margin-top: 4px;
}

.captcha-ch:nth-child(3n) {
  margin-top: -4px;
}

.captcha-noise {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(238, 92, 39, 0.45);
  pointer-events: none;
}

.captcha-refresh {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.captcha-refresh:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.alert {
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: #fdecea;
  color: #b71c1c;
}

.alert-ok {
  background: #e8f5e9;
  color: #1b5e20;
}

body[data-page="verify"],
body[data-page="order-success"] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body[data-page="verify"] main,
body[data-page="order-success"] main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.verify-section {
  width: 100%;
  padding: 2.5rem 0;
}

.verify-banner {
  display: block;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 1.8rem;
}

.verify-banner[hidden] {
  display: block;
}

.verify-banner h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.verify-banner p {
  margin: 0;
  color: inherit;
}

.verify-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.4rem !important;
}

.verify-banner-actions .btn {
  position: relative;
  z-index: 2;
}

.verify-banner-ok {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #1b5e20;
}

.trial-dialog {
  width: min(36rem, calc(100vw - 2rem));
  margin: auto;
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  background: #e8f5e9;
  color: #1b5e20;
  padding: 1.5rem 1.4rem 1.25rem;
  box-shadow: var(--shadow);
}

.trial-dialog::backdrop {
  background: rgba(28, 37, 41, 0.72);
}

.trial-dialog h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.trial-dialog p {
  margin: 0;
  line-height: 1.5;
}

.trial-dialog a {
  color: inherit;
  font-weight: 700;
}

.trial-dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.verify-banner-error {
  background: #fdecea;
  border-color: #f5c6c2;
  color: #b71c1c;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  color: var(--text);
  box-shadow: var(--shadow);
}

.tile:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.tile h3 {
  margin: 0 0 0.4rem;
}

.tile p {
  margin: 0;
  color: var(--muted);
}

.area-hello {
  font-size: 1.15rem;
  font-weight: 650;
}

.area-h {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  font-size: 1.2rem;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  background: #eceff1;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  color: var(--muted);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
  margin: 0 0 1.25rem;
}

.admin-search {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(10rem, 1fr) auto;
  gap: 0.8rem;
  align-items: end;
  flex: 1 1 28rem;
}

.admin-search label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.admin-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
}

body.modal-lock {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 270;
  background: rgba(28, 37, 41, 0.55);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  overflow: auto;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: min(100%, 34rem);
  max-height: min(92vh, 44rem);
  overflow: visible;
  padding: 1.3rem 1.4rem 1.4rem;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.btn-sm {
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  word-break: break-all;
}

.sub-card {
  margin-bottom: 1rem;
}

.sub-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.sub-card-head h3 {
  margin: 0;
}

.sub-status-badge {
  display: inline-block;
  background: #c62828;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

.sub-card.is-cancelled {
  border-color: #e57373;
  background: #fff6f6;
}

.sub-card.is-cancelled .sub-status-text {
  color: #c62828;
  font-weight: 700;
  text-transform: uppercase;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cart-summary {
  margin-top: 1.2rem;
}

.cart-checkout {
  margin-top: 1.2rem;
}

.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(55, 71, 79, 0.22);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.icon-action:hover,
.icon-action:focus-visible {
  color: #c62828;
  border-color: #e57373;
  background: #fff6f6;
  text-decoration: none;
}

.icon-action svg {
  display: block;
}

.qty-input {
  max-width: 5rem;
}

.check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 600;
}

.check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.form .check {
  margin: 0.15rem 0 0.35rem;
}

.form .check span {
  font-weight: 600;
  line-height: 1.45;
}

.site-banner {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.92rem;
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%) translateY(120%);
  background: var(--primary-dark);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: 0.25s ease;
  max-width: min(90vw, 28rem);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.is-error {
  background: #b71c1c;
}

.toast.is-ok {
  background: #1b5e20;
}

.cookie-lock {
  overflow: hidden;
}

body:has(.cookie-banner:not([hidden])) {
  padding-bottom: 9rem;
}

.cookie-banner {
  position: fixed;
  z-index: 240;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 -8px 28px rgba(38, 50, 56, 0.18);
}

.cookie-banner[hidden],
.cookie-overlay[hidden] {
  display: none;
}

.cookie-banner-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.1rem 0 1.2rem;
}

.cookie-kicker {
  margin: 0 0 0.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.cookie-banner-copy p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 44rem;
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.6rem;
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(28, 37, 41, 0.55);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.cookie-panel {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: min(100%, 40rem);
  max-height: min(92vh, 44rem);
  overflow: auto;
  padding: 1.3rem 1.4rem 1.4rem;
}

.cookie-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.cookie-panel h2 {
  margin: 0;
  font-size: 1.25rem;
}

.cookie-panel h3 {
  margin: 0;
  font-size: 1.02rem;
}

.cookie-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
}

.cookie-cat {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.cookie-cat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
}

.cookie-badge-on {
  background: rgba(46, 125, 50, 0.1);
  color: var(--ok);
  border-color: rgba(46, 125, 50, 0.25);
}

.cookie-table,
.legal-block table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

.cookie-table th,
.cookie-table td,
.legal-block th,
.legal-block td {
  text-align: left;
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

.cookie-table th,
.legal-block th {
  color: var(--text);
  font-weight: 600;
}

.cookie-table code,
.legal-block code {
  font-size: 0.84em;
  color: var(--primary-dark);
}

.cookie-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cookie-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.cookie-footer-link {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-footer .cookie-footer-link {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer .cookie-footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .cookie-banner-inner,
  .cookie-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions .btn,
  .cookie-banner-actions .btn-ghost {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .form-row,
  .form-layout,
  .admin-search {
    grid-template-columns: 1fr;
  }

  .admin-toolbar .btn {
    width: 100%;
  }
}

[hidden] {
  display: none !important;
}

.section-follow {
  padding-top: 0;
}

.wrap-narrow {
  max-width: 46rem;
}

.prose-gap {
  margin-top: 2rem;
}

.prose-gap-md {
  margin-top: 2.5rem;
}

.prose-gap-lg {
  margin-top: 3rem;
}

.grid-space {
  margin: 1.5rem 0;
}

.note-center {
  text-align: center;
  margin-top: 1.2rem;
}

.kicker-accent {
  color: var(--accent);
}
