:root {
  --bt-blue: #625af8;
  --bt-blue-dark: #4e46dc;
  --bt-blue-soft: #edeefe;
  --bt-text: #111827;
  --bt-muted: #5f6b7a;
  --bt-border: #e6e8ee;
  --bt-card: #ffffff;
  --bt-soft: #f4f5f8;
  --bt-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 106px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(98, 90, 248, 0.12), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 42%, #ffffff 100%);
  color: var(--bt-text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 82px;
  padding: 18px clamp(20px, 5vw, 54px);
  border-bottom: 1px solid var(--bt-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.04);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #050505;
  text-decoration: none;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

/* Icona brand (favicon Cloudinary, la stessa della dashboard) a 40px */
.brand-logo {
  width: 40px;
  height: 40px;
  display: block;
}

/* Wordmark allineato alla dashboard (font-black text-2xl text-black) */
.brand-name {
  font-weight: 900;
  font-size: 1.5rem;
  color: #000000;
  transition: color 0.2s ease;
}

.brand:hover .brand-name {
  color: #1f2937;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  background: var(--bt-blue);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(98, 90, 248, 0.28);
}

.brand-mark svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.page-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px) 20px 84px;
}

.hero-card,
.pre-card,
.terms-section {
  border: 1px solid var(--bt-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--bt-shadow);
}

.hero-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 46px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--bt-blue);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0 auto 18px;
  font-size: clamp(1.95rem, 4vw, 3.3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.updated {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0 0 26px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--bt-blue);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(98, 90, 248, 0.25);
}

.intro-copy {
  max-width: 760px;
  margin: 0 auto;
  color: var(--bt-muted);
  text-align: left;
}

.document-content {
  min-width: 0;
}

.preliminary-section {
  margin-top: 26px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  text-align: center;
}

.section-kicker {
  margin: 0;
  color: var(--bt-blue);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: #151a2e;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.preliminary-grid {
  display: grid;
  gap: 18px;
}

.pre-card {
  padding: clamp(22px, 4vw, 34px);
  scroll-margin-top: 106px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.pre-card:target {
  border-color: var(--bt-blue);
  box-shadow: 0 18px 45px rgba(98, 90, 248, 0.16);
}

.pre-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.pre-number {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--bt-blue);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 12px 22px rgba(98, 90, 248, 0.22);
}

.pre-feature-list {
  display: grid;
  gap: 10px;
}

.pre-feature-line {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--bt-border);
  border-radius: 8px;
  background: #ffffff;
  color: #242a38;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.definition-list {
  display: grid;
  gap: 10px;
}

.definition-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.88fr) minmax(0, 1.12fr);
  gap: 14px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--bt-border);
  border-radius: 8px;
  background: #ffffff;
  color: #242a38;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.definition-term {
  color: var(--bt-blue-dark);
  font-weight: 800;
}

.definition-text {
  min-width: 0;
  color: #242a38;
}

.pre-card-channels .pre-feature-line:nth-child(n + 2):nth-child(-n + 4) {
  border-color: rgba(98, 90, 248, 0.22);
  background: var(--bt-blue-soft);
}

.company-profile {
  display: grid;
  gap: 16px;
}

.company-intro,
.company-alias {
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--bt-soft);
  color: #242a38;
  white-space: pre-wrap;
}

.company-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, var(--bt-blue-soft) 100%);
  border: 1px solid rgba(98, 90, 248, 0.2);
}

.company-title-block {
  display: grid;
  gap: 10px;
}

.company-badge {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--bt-blue);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.company-title-block h3 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.company-data-grid {
  display: grid;
  border: 1px solid var(--bt-border);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.company-data-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  margin: 0;
  padding: 15px 16px;
  border-bottom: 1px solid var(--bt-border);
  color: #242a38;
}

.company-data-row:last-child {
  border-bottom: 0;
}

.company-data-row-contact {
  background: rgba(98, 90, 248, 0.045);
}

.company-label {
  color: var(--bt-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.company-value {
  min-width: 0;
  color: #151a2e;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.channel-feature-list {
  gap: 12px;
}

.channel-list {
  display: grid;
  gap: 12px;
}

.channel-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--bt-border);
  border-radius: 8px;
  background: #ffffff;
  color: #242a38;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.channel-card:hover {
  border-color: rgba(98, 90, 248, 0.42);
  color: #151a2e;
  box-shadow: 0 14px 30px rgba(98, 90, 248, 0.14);
  transform: translateY(-1px);
}

.channel-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
}

.channel-card-telegram .channel-icon {
  background: #28a8ea;
}

.channel-card-instagram .channel-icon {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 48%, #8134af 100%);
}

.channel-icon svg {
  width: 27px;
  height: 27px;
}

.channel-copy {
  min-width: 0;
  color: inherit;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.channel-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--bt-blue-soft);
  color: var(--bt-blue-dark);
}

.channel-arrow svg {
  width: 18px;
  height: 18px;
}

.pre-copy {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 8px;
  background: var(--bt-soft);
  color: #242a38;
}

.pre-copy p,
.pre-feature-line,
.channel-copy,
.company-data-row,
.definition-row {
  white-space: pre-wrap;
}

.pre-copy p {
  margin: 0;
}

.articles-list {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.terms-section {
  padding: clamp(24px, 4vw, 38px);
  scroll-margin-top: 106px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.terms-section:target {
  border-color: var(--bt-blue);
  box-shadow: 0 18px 45px rgba(98, 90, 248, 0.16);
}

.article-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.article-heading h2 {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--bt-blue);
  color: #ffffff;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 12px 22px rgba(98, 90, 248, 0.22);
}

.terms-copy {
  padding: clamp(18px, 3vw, 28px);
  border-radius: 8px;
  background: var(--bt-soft);
  color: #242a38;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.02);
}

.terms-copy p,
.intro-copy p {
  margin: 0;
  white-space: pre-wrap;
}

.terms-copy p + p,
.intro-copy p + p {
  margin-top: 10px;
}

.terms-copy a,
.intro-copy a,
.pre-card a,
.company-profile a {
  color: var(--bt-blue-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.pre-card .channel-card,
.pre-card .channel-card:hover {
  color: #242a38;
  font-weight: 400;
  text-decoration: none;
}

.terms-copy a:hover,
.intro-copy a:hover,
.pre-card a:hover,
.company-profile a:hover {
  color: var(--bt-blue);
}

.clause-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55em;
  min-height: 1.55em;
  border-radius: 6px;
  background: rgba(98, 90, 248, 0.1);
  text-decoration: none;
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 72px;
    padding: 14px 18px;
  }

  .brand {
    font-size: 2rem;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-mark svg {
    width: 30px;
    height: 30px;
  }

  .page-shell {
    padding-inline: 14px;
  }

  .hero-card,
  .pre-card,
  .terms-section,
  .terms-copy {
    border-radius: 8px;
  }

  .definition-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .company-hero {
    padding: 18px;
  }

  .company-data-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .channel-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .channel-icon {
    width: 42px;
    height: 42px;
  }

  .channel-arrow {
    display: none;
  }
}
