/* DottorCloud — design tokens.
   The same values drive the logo, the video, the presentation and the PDF. */
:root {
  /* brand */
  --dc-teal: #12a594;        /* the brand colour: mark, "Cloud", primary buttons */
  --dc-teal-dark: #0b6f64;   /* text on teal-soft, deep backgrounds, app icon */
  --dc-teal-soft: #e1f5f1;   /* chips, icon circles, highlighted rows */
  --dc-mint: #5fe0cc;        /* the brand colour on dark backgrounds */
  --dc-night: #111413;       /* dark scenes, covers, closing slides */

  /* neutrals */
  --dc-ink: #16201e;         /* titles and body on light */
  --dc-muted: #5f6b69;       /* secondary text */
  --dc-faint: #9aa5a3;       /* captions, disabled, footers */
  --dc-border: #e3e9e7;      /* hairlines and card borders */
  --dc-bg: #f4f7f6;          /* page background */
  --dc-card: #ffffff;

  /* accents: one per kind of thing, never for decoration */
  --dc-blue: #2f6fed;   --dc-blue-soft: #e6eefe;    /* documents, ultrasound, our messages */
  --dc-violet: #7c5cf0; --dc-violet-soft: #efeafe;  /* exercises, marketing */
  --dc-amber: #d98a0b;  --dc-amber-soft: #fdf2dc;   /* waiting list, nutrition, internal notes */
  --dc-rose: #e0487a;   --dc-rose-soft: #fde8ef;    /* cardiology, allergies, recording */
  --dc-green: #1f9d55;  --dc-green-soft: #e3f6ea;   /* done, confirmed, WhatsApp */

  /* type */
  --dc-font: "Inter", -apple-system, "Segoe UI", sans-serif;   /* web, app, video */
  --dc-font-office: "Calibri", "Carlito", sans-serif;           /* PowerPoint and PDF */
  --dc-display: 700 88px/1.04 var(--dc-font);   /* video titles, letter-spacing -0.035em */
  --dc-h1: 700 36px/1.1 var(--dc-font);         /* slide and page titles */
  --dc-h2: 700 24px/1.2 var(--dc-font);
  --dc-body: 400 16px/1.45 var(--dc-font);
  --dc-caption: 600 13px/1.3 var(--dc-font);    /* uppercase labels, letter-spacing 0.05em */

  /* shape */
  --dc-radius-s: 8px;    /* inputs, tags */
  --dc-radius-m: 12px;   /* buttons, list rows */
  --dc-radius-l: 18px;   /* windows, cards */
  --dc-radius-xl: 20px;  /* big cards, phone content */
  --dc-radius-pill: 999px;

  /* depth: soft, tinted with the brand's dark teal, never grey-black */
  --dc-shadow-card: 0 3px 10px rgba(11, 59, 53, 0.08);
  --dc-shadow-float: 0 24px 60px -16px rgba(16, 40, 36, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
  --dc-shadow-window: 0 40px 100px -20px rgba(16, 40, 36, 0.28), 0 12px 30px -10px rgba(0, 0, 0, 0.12);

  /* motion */
  --dc-ease-in: cubic-bezier(0.22, 1, 0.36, 1);        /* things arriving: fast then settle (quint out) */
  --dc-ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);    /* small things popping in, a little overshoot */
  --dc-ease-move: cubic-bezier(0.65, 0, 0.35, 1);      /* camera and objects travelling (cubic in-out) */
  --dc-dur-fast: 250ms;    /* taps, toggles */
  --dc-dur-base: 500ms;    /* cards, rows, words */
  --dc-dur-slow: 800ms;    /* windows, phones, transitions */
  --dc-stagger: 60ms;      /* between words or list rows */
}

/* Copyright (c) 2026, NPM2 Solutions Srl and contributors
   For license information, please see license.txt

   The DottorCloud website. The brand's tokens (brand/dottorcloud/design-system/tokens.css)
   are put in front of this file by build.mjs: colours, radii, shadows and
   curves come from there, so the site looks like the logo, the video and the
   presentation. */

@font-face {
  font-family: 'Inter';
  src: url('/font/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* the action: the brand's dark teal, readable with white text (6:1) */
  --action: var(--dc-teal-dark);
  --action-hover: #095a51;
  --page: 1200px;
  --gutter: 24px;
  --section: clamp(72px, 9vw, 120px);
  --header: 72px;
  --on-dark: #cff3ec; /* body text on night and dark teal */
  --on-dark-muted: #9fd8ce;
  --deep: #0e3b36; /* icon circles on dark */
  --teal-card: #0e8073; /* cards on the dark teal band */
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --header: 64px;
  }
}

/* base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--dc-bg);
  color: var(--dc-ink);
  font-family: var(--dc-font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: var(--dc-teal-dark);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--dc-ink);
}

:focus-visible {
  outline: 3px solid var(--dc-teal);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--dc-teal-soft);
  color: var(--dc-teal-dark);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--dc-radius-m);
  background: var(--dc-night);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: #fff;
}

.container {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(820px + 2 * var(--gutter));
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* type */

.display {
  font-size: clamp(2.5rem, 1.35rem + 4.6vw, 4.75rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: clamp(1.9rem, 1.35rem + 2.1vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.h3 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.5;
  color: var(--dc-muted);
}

.accent {
  color: var(--dc-teal);
}

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

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dc-teal-dark);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--dc-radius-pill);
  background: var(--dc-teal-soft);
  color: var(--dc-teal-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.chip .icon {
  width: 16px;
  height: 16px;
}

.chip--dark {
  background: var(--deep);
  color: var(--dc-mint);
}

.chip--inline {
  margin-left: 6px;
  padding: 2px 10px;
  font-size: 12px;
  vertical-align: 2px;
}

.chip--soon {
  background: var(--dc-night);
  color: var(--dc-mint);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

/* buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--dc-radius-m);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dc-dur-fast) ease,
    border-color var(--dc-dur-fast) ease,
    color var(--dc-dur-fast) ease,
    transform var(--dc-dur-fast) var(--dc-ease-pop),
    box-shadow var(--dc-dur-fast) ease;
}

.button .icon {
  width: 20px;
  height: 20px;
}

.button--primary {
  background: var(--action);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(11, 111, 100, 0.7);
}

.button--primary:hover {
  background: var(--action-hover);
  color: #fff;
  transform: translateY(-1px);
}

.button--secondary {
  background: var(--dc-card);
  border-color: var(--dc-border);
  color: var(--dc-ink);
  box-shadow: var(--dc-shadow-card);
}

.button--secondary:hover {
  border-color: #c9d4d1;
  color: var(--dc-ink);
  transform: translateY(-1px);
}

.button--mint {
  background: var(--dc-mint);
  color: var(--dc-night);
}

.button--mint:hover {
  background: #86ead9;
  color: var(--dc-night);
  transform: translateY(-1px);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.button--small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 15px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.buttons--center {
  justify-content: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
}

.link-arrow .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--dc-dur-fast) var(--dc-ease-pop);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 246, 0.86);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: border-color var(--dc-dur-fast) ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--dc-border);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header);
}

.brand {
  display: inline-flex;
  flex: none;
  margin-right: auto;
  border-radius: 8px;
}

.brand img {
  width: 148px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a:not(.button) {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--dc-muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    color var(--dc-dur-fast) ease,
    background-color var(--dc-dur-fast) ease;
}

.nav a:not(.button):hover {
  color: var(--dc-ink);
  background: rgba(11, 111, 100, 0.06);
}

.nav a:not(.button)[aria-current='page'] {
  color: var(--dc-teal-dark);
}

.nav .button {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--dc-ink);
  text-decoration: none;
  cursor: pointer;
}

.nav-toggle .icon--close,
.is-open .nav-toggle .icon--open {
  display: none;
}

.is-open .nav-toggle .icon--close {
  display: block;
}

/* five links and the button fit from 1100px; below, the menu opens from its button */
.nav a {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .brand img {
    width: 132px;
  }
}

@media (max-width: 1099px) {
  /* without JavaScript the links stay in view, on a row of their own */
  html:not(.js) .site-header__row {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  html:not(.js) .nav {
    flex-wrap: wrap;
    width: 100%;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px var(--gutter) 20px;
    background: var(--dc-bg);
    border-bottom: 1px solid var(--dc-border);
    box-shadow: 0 24px 40px -24px rgba(16, 40, 36, 0.35);
  }

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

  .js .nav a:not(.button) {
    padding: 14px 12px;
    font-size: 17px;
  }

  .js .nav .button {
    margin: 10px 0 0;
  }
}

/* sections */

.section {
  padding-block: var(--section);
}

.section--white {
  background: var(--dc-card);
}

.section--night {
  background: var(--dc-night);
  color: #fff;
}

.section--teal {
  background: var(--dc-teal-dark);
  color: #fff;
}

.section--night .lead,
.section--teal .lead {
  color: var(--on-dark);
}

.section--night .eyebrow {
  color: var(--dc-mint);
}

.section--night a:not(.button),
.section--teal a:not(.button) {
  color: var(--dc-mint);
}

.section--night a:not(.button):hover,
.section--teal a:not(.button):hover {
  color: #fff;
}

.section--tight {
  padding-block: clamp(48px, 6vw, 72px);
}

.section + .section--flush {
  padding-top: 0;
}

/* hero */

.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px) 0;
  overflow: clip;
  isolation: isolate;
}

.hero::before {
  /* the dotted field of the video's cover, fading out */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(
    rgba(11, 111, 100, 0.13) 1.2px,
    transparent 1.2px
  );
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 30%,
    #000 20%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 30%,
    #000 20%,
    transparent 75%
  );
}

.hero::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 38%;
  z-index: -1;
  width: min(1100px, 120vw);
  aspect-ratio: 1.6;
  translate: -50% 0;
  background: radial-gradient(
    closest-side,
    rgba(18, 165, 148, 0.18),
    transparent
  );
  pointer-events: none;
}

.hero__text {
  display: grid;
  justify-items: center;
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.hero__text .display {
  max-width: 13em;
}

.hero__text .lead {
  max-width: 640px;
}

.hero__note {
  color: var(--dc-muted);
  font-size: 15px;
}

.hero--page {
  padding-bottom: clamp(40px, 6vw, 80px);
}

.hero--page .hero__text {
  justify-items: start;
  text-align: left;
  max-width: none;
  margin-inline: 0;
}

.hero--page .hero__text .h1 {
  max-width: 17em;
}

.hero--page .hero__text .lead {
  max-width: 720px;
}

.hero--dark {
  background: var(--dc-night);
  color: #fff;
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero--dark::before {
  background-image: radial-gradient(
    rgba(95, 224, 204, 0.12) 1.2px,
    transparent 1.2px
  );
}

.hero--dark::after {
  background: radial-gradient(
    closest-side,
    rgba(18, 165, 148, 0.28),
    transparent
  );
}

.hero--dark .lead {
  color: var(--on-dark);
}

.hero--split .hero__text {
  justify-items: start;
  text-align: left;
  margin: 0;
}

.hero__art {
  width: 100%;
  max-width: min(440px, 100%);
  justify-self: center;
}

@media (max-width: 1023px) {
  .hero__art {
    max-width: min(300px, 80%);
  }
}

/* dark cards on the night */
.card.card--dark {
  border-color: rgba(255, 255, 255, 0.08);
  background: #171c1b;
  box-shadow: none;
}

.card.card--dark p {
  color: var(--on-dark-muted);
}

/* things arriving on load: fast, then settle */
@media (prefers-reduced-motion: no-preference) {
  .arrive {
    animation: arrive var(--dc-dur-slow) var(--dc-ease-in) both;
    animation-delay: calc(var(--i, 0) * 70ms + 60ms);
  }
  /* the hero's picture is what the browser counts as the page loaded: it moves
     in, but is never transparent, or the page would count as late */
  .showcase.arrive {
    animation-name: arrive-visible;
  }
}

@keyframes arrive-visible {
  from {
    transform: translateY(18px);
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* the product, under the hero's words */

.showcase {
  position: relative;
  max-width: 1040px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding-bottom: clamp(40px, 5vw, 64px);
}

.showcase__main {
  width: 100%;
}

/* the patient's phone stands beside the agenda, over its right edge */
.showcase__phone {
  position: absolute;
  right: -7%;
  bottom: 0;
  width: 19%;
  filter: drop-shadow(0 30px 40px rgba(16, 40, 36, 0.22));
}

.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 14px 14px;
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-l);
  background: var(--dc-card);
  box-shadow: var(--dc-shadow-float);
  text-align: left;
}

.toast__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--dc-green-soft);
  color: var(--dc-green);
}

.toast__text strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.toast__text span {
  display: block;
  color: var(--dc-muted);
  font-size: 14px;
  line-height: 1.3;
}

.showcase__toast {
  position: absolute;
  left: 7%;
  bottom: 12%;
}

@media (prefers-reduced-motion: no-preference) {
  .showcase .pop {
    animation: pop 600ms var(--dc-ease-pop) both;
    animation-delay: calc(var(--i, 0) * 180ms + 700ms);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
}

@media (max-width: 1180px) {
  .showcase__phone {
    right: -2%;
    width: 17%;
  }
}

@media (max-width: 767px) {
  .showcase {
    margin-inline: calc(-1 * var(--gutter) + 6px);
    padding-bottom: 56px;
  }

  .showcase__phone {
    right: 2%;
    width: 30%;
  }

  .showcase__toast {
    left: 4%;
    right: 36%;
    bottom: 8px;
    padding: 10px 12px 10px 10px;
    gap: 10px;
  }

  .toast__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .toast__text strong {
    font-size: 14px;
  }

  .toast__text span {
    font-size: 12px;
  }
}

/* the chips of the video's cover: what is in one place */

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 980px;
  margin-inline: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-pill);
  background: var(--dc-card);
  color: var(--dc-ink);
  font-size: 15px;
  font-weight: 600;
}

.pill .icon {
  width: 18px;
  height: 18px;
  color: var(--dc-teal);
}

/* cards */

.grid {
  display: grid;
  gap: 20px;
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

@media (max-width: 1023px) {
  .grid--4,
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .grid--4,
  .grid--3,
  .grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-l);
  background: var(--dc-card);
  box-shadow: var(--dc-shadow-card);
}

.card h2,
.card h3,
.card h4 {
  font-size: 19px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--dc-muted);
  font-size: 16px;
  line-height: 1.5;
}

.card--link {
  position: relative;
  transition:
    transform var(--dc-dur-fast) var(--dc-ease-pop),
    box-shadow var(--dc-dur-fast) ease,
    border-color var(--dc-dur-fast) ease;
}

.card--link:hover {
  transform: translateY(-2px);
  border-color: #cfdcd8;
  box-shadow: 0 16px 40px -18px rgba(16, 40, 36, 0.3);
}

.card--link a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card--link a {
  color: inherit;
  text-decoration: none;
}

.card .check {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dc-teal);
  color: #fff;
}

.card .check .icon {
  width: 16px;
  height: 16px;
  stroke-width: 3;
}

.card--checked {
  position: relative;
}

@media (max-width: 639px) {
  .card {
    padding: 22px;
  }

  /* on a phone the overview's cards read as rows */
  .grid--rows .card {
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    row-gap: 4px;
  }

  .grid--rows .card .bubble {
    grid-row: span 2;
  }
}

.bubble {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--dc-teal-soft);
  color: var(--dc-teal-dark);
}

.bubble .icon {
  width: 24px;
  height: 24px;
}

.bubble--small {
  width: 44px;
  height: 44px;
}

.bubble--small .icon {
  width: 21px;
  height: 21px;
}

.bubble--dark {
  background: var(--deep);
  color: var(--dc-mint);
}

.bubble--blue {
  background: var(--dc-blue-soft);
  color: var(--dc-blue);
}

.bubble--violet {
  background: var(--dc-violet-soft);
  color: var(--dc-violet);
}

.bubble--amber {
  background: var(--dc-amber-soft);
  color: var(--dc-amber);
}

.bubble--rose {
  background: var(--dc-rose-soft);
  color: var(--dc-rose);
}

.bubble--green {
  background: var(--dc-green-soft);
  color: var(--dc-green);
}

/* rows: an icon, a title and one line, as on the presentation's slides */

.rows {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: start;
}

.row div strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}

.row div span {
  display: block;
  margin-top: 2px;
  color: var(--dc-muted);
  font-size: 16px;
  line-height: 1.45;
}

.section--night .row div span,
.hero--dark .row div span {
  color: var(--on-dark-muted);
}

.section--teal .row div span {
  color: var(--on-dark);
}

/* a feature: words on one side, the product on the other */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.feature + .feature {
  margin-top: clamp(72px, 10vw, 136px);
}

.feature--flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.feature--flip .feature__text {
  order: 2;
}

.feature__text {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.feature__text .rows {
  margin-top: 8px;
}

.feature__media {
  position: relative;
}

.feature__media img {
  width: 100%;
}

/* two or three phones, upright, the middle one in front */
.feature__media--phones {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: 4% 6%;
}

.feature__media--phones img {
  position: relative;
  width: 34%;
  margin-inline: -1.5%;
  filter: drop-shadow(0 26px 34px rgba(16, 40, 36, 0.2));
}

.feature__media--phones img:first-child {
  transform: translateY(5%) rotate(-3deg);
}

.feature__media--phones img:last-child {
  transform: translateY(9%) rotate(3deg);
}

.feature__media--phones img:nth-child(2):not(:last-child) {
  z-index: 1;
  width: 37%;
  transform: none;
}

/* two phones: each a little bigger */
.feature__media--phones img:first-child:nth-last-child(2),
.feature__media--phones img:first-child:nth-last-child(2) ~ img {
  width: 43%;
}

/* the phones breathe, each on its own beat */
@media (prefers-reduced-motion: no-preference) {
  .feature__media--phones img,
  .showcase__phone {
    animation: float 6s ease-in-out infinite;
  }

  .feature__media--phones img:nth-child(2) {
    animation-delay: -2s;
  }

  .feature__media--phones img:nth-child(3) {
    animation-delay: -4s;
  }
}

@keyframes float {
  50% {
    translate: 0 -12px;
  }
}

/* an automation, drawn: the dots run along the lines, a step lights up as they arrive */
.flow {
  position: relative;
  aspect-ratio: 1470 / 440;
  margin: 0;
  container-type: inline-size;
}

.flow__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flow__lines path {
  fill: none;
  stroke: #9bdcd1;
  stroke-width: 4;
  stroke-linecap: round;
}

.flow__lines circle {
  fill: var(--dc-teal);
}

.flow__moving circle {
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(18, 165, 148, 0.7));
}

.flow__nodes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow__node {
  position: absolute;
  left: calc(var(--x) / 1470 * 100%);
  top: calc(var(--y) / 440 * 100%);
  width: calc(300 / 1470 * 100%);
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.1cqi, 14px);
  padding: clamp(10px, 1.3cqi, 18px);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-l);
  background: var(--dc-card);
  box-shadow: var(--dc-shadow-card);
  transform: translateY(-50%);
}

.flow__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(32px, 3.6cqi, 46px);
  height: clamp(32px, 3.6cqi, 46px);
  border-radius: 12px;
  background: #f1f4f3;
  color: var(--dc-muted);
}

.flow__icon .icon {
  width: 55%;
  height: 55%;
}

.flow__icon--teal {
  background: var(--dc-teal-soft);
  color: var(--dc-teal-dark);
}

.flow__icon--green {
  background: var(--dc-green-soft);
  color: var(--dc-green);
}

.flow__icon--blue {
  background: var(--dc-blue-soft);
  color: var(--dc-blue);
}

.flow__icon--amber {
  background: var(--dc-amber-soft);
  color: var(--dc-amber);
}

.flow__words {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.flow__words strong {
  font-size: clamp(13px, 1.25cqi, 17px);
  letter-spacing: -0.01em;
}

.flow__words > span:last-child {
  color: var(--dc-muted);
  font-size: clamp(11.5px, 1cqi, 14px);
}

.flow__kind {
  color: var(--dc-muted);
  font-size: clamp(10px, 0.8cqi, 12px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow__kind--teal {
  color: var(--dc-teal-dark);
}

.flow__kind--green {
  color: var(--dc-green);
}

.flow__kind--blue {
  color: var(--dc-blue);
}

.flow__kind--amber {
  color: var(--dc-amber);
}

@media (prefers-reduced-motion: no-preference) {
  .flow__still {
    display: none;
  }

  .flow__node {
    animation: flow-arrive 4.8s ease-out infinite;
    animation-delay: calc(var(--t) * 4.8s - 0.05s);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow__moving {
    display: none;
  }
}

@keyframes flow-arrive {
  0% {
    border-color: var(--dc-teal);
    box-shadow:
      0 0 0 4px rgba(18, 165, 148, 0.14),
      var(--dc-shadow-card);
  }

  14%,
  100% {
    border-color: var(--dc-border);
    box-shadow: var(--dc-shadow-card);
  }
}

/* narrower than the drawing: the steps one under the other, a dot running down */
@media (max-width: 899px) {
  .flow {
    aspect-ratio: auto;
    padding-left: 28px;
  }

  .flow::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 28px;
    bottom: 28px;
    width: 3px;
    border-radius: 2px;
    background: #9bdcd1;
  }

  .flow__lines {
    display: none;
  }

  .flow__nodes {
    display: grid;
    gap: 12px;
  }

  .flow__node {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    transform: none;
  }

  .flow__node::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 50%;
    width: 11px;
    height: 11px;
    margin-top: -5.5px;
    border-radius: 50%;
    background: var(--dc-teal);
  }

  .flow__words strong {
    font-size: 16px;
  }

  .flow__words > span:last-child {
    font-size: 14px;
  }

  .flow__kind {
    font-size: 11px;
  }

  @media (prefers-reduced-motion: no-preference) {
    .flow__node {
      animation-delay: calc(var(--n) * 0.96s - 0.05s);
    }

    .flow::after {
      content: "";
      position: absolute;
      left: 4px;
      top: 28px;
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: var(--dc-teal);
      box-shadow: 0 0 10px rgba(18, 165, 148, 0.7);
      animation: flow-down 4.8s linear infinite;
    }
  }
}

@keyframes flow-down {
  0% {
    top: 28px;
    opacity: 0;
  }

  4% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  100% {
    top: calc(100% - 41px);
    opacity: 0;
  }
}

/* two windows, the second over the first's corner */
.feature__media--stack {
  padding: 0 0 18% 0;
}

.feature__media--stack img:first-child {
  width: 84%;
}

.feature__media--stack img:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 78%;
  filter: drop-shadow(0 24px 40px rgba(16, 40, 36, 0.18));
}

/* a phone beside two cards */
.collage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4%;
  align-items: center;
}

.collage img:first-child {
  grid-row: span 2;
}

/* a feature on the night, for what is still to come */
.feature--dark {
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--dc-radius-xl);
  background: var(--dc-night);
  color: #fff;
}

.feature--dark .lead {
  color: var(--on-dark);
}

.feature--dark .row div span {
  color: var(--on-dark-muted);
}

.feature--dark .bubble {
  background: var(--deep);
  color: var(--dc-mint);
}

.note {
  color: var(--dc-muted);
  font-size: 16px;
}

.feature--dark .note {
  color: var(--on-dark-muted);
}

.feature--wide {
  grid-template-columns: minmax(0, 1fr);
}

.feature--wide .feature__text {
  max-width: 760px;
}

@media (max-width: 1023px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature--flip {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature--flip .feature__text {
    order: 0;
  }

  .feature__media {
    max-width: 680px;
  }
}

.overlay {
  position: absolute;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* the patient's journey */

.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.journey::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--dc-teal-soft),
    var(--dc-teal) 50%,
    var(--dc-teal-soft)
  );
}

.journey li {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
}

.journey a {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.journey .bubble {
  position: relative;
  width: 56px;
  height: 56px;
  background: var(--dc-card);
  border: 2px solid var(--dc-teal);
  color: var(--dc-teal-dark);
  box-shadow: 0 0 0 8px var(--dc-bg);
  transition:
    background-color var(--dc-dur-fast) ease,
    color var(--dc-dur-fast) ease;
}

.journey a:hover .bubble {
  background: var(--dc-teal);
  color: #fff;
}

.journey .step {
  color: var(--dc-teal-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.journey strong {
  font-size: 18px;
  line-height: 1.2;
}

.journey .text {
  color: var(--dc-muted);
  font-size: 15px;
  line-height: 1.4;
}

@media (max-width: 1023px) {
  .journey {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .journey::before {
    top: 28px;
    bottom: 28px;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(
      180deg,
      var(--dc-teal-soft),
      var(--dc-teal) 50%,
      var(--dc-teal-soft)
    );
  }

  .journey li,
  .journey a {
    justify-items: start;
    text-align: left;
  }

  .journey a {
    grid-template-columns: 56px 1fr;
    column-gap: 18px;
    row-gap: 2px;
    padding-block: 12px;
  }

  .journey .bubble {
    grid-row: span 3;
  }
}

/* big numbers on the dark teal band */

.numbers .card {
  background: var(--teal-card);
  border-color: transparent;
  box-shadow: none;
  color: #fff;
}

.numbers .card p {
  color: #fff;
}

.numbers .figure {
  display: flex;
  align-items: center;
  height: 84px;
  color: var(--dc-mint);
  font-size: 76px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.numbers .figure .icon {
  width: 88px;
  height: 88px;
  stroke-width: 2.4;
}

.numbers h3 {
  font-size: 22px;
}

/* the video */

.video {
  position: relative;
  max-width: 1040px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--dc-radius-xl);
  background: var(--dc-night);
  box-shadow: var(--dc-shadow-window);
  aspect-ratio: 16 / 9;
}

.video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  padding: clamp(16px, 3vw, 28px);
  border: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(17, 20, 19, 0.6));
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.video__play .label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 700;
}

.video__play .circle {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--dc-mint);
  color: var(--dc-night);
  box-shadow: 0 16px 40px -10px rgba(95, 224, 204, 0.6);
  transition: transform var(--dc-dur-fast) var(--dc-ease-pop);
}

.video__play .circle .icon {
  width: 26px;
  height: 26px;
  margin-left: 4px;
  fill: currentColor;
}

.video__play:hover .circle {
  transform: scale(1.06);
}

@media (max-width: 639px) {
  .video__play .circle {
    width: 48px;
    height: 48px;
  }

  .video__play .circle .icon {
    width: 20px;
    height: 20px;
  }

  .video__play .label {
    font-size: 15px;
  }
}

/* questions */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-l);
  background: var(--dc-card);
  box-shadow: var(--dc-shadow-card);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--dc-teal-dark);
  transition: transform var(--dc-dur-fast) var(--dc-ease-in);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq details p {
  padding: 0 24px 22px;
  color: var(--dc-muted);
}

/* the dark bands: privacy, closing */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

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

@media (max-width: 1023px) {
  .split,
  .split--even {
    grid-template-columns: minmax(0, 1fr);
  }
}

.closing {
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.closing img {
  width: 64px;
}

.closing .lead {
  max-width: 620px;
}

/* chapters of the features page */

.chapters {
  position: sticky;
  top: var(--header);
  z-index: 40;
  background: rgba(244, 247, 246, 0.92);
  border-block: 1px solid var(--dc-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.chapters ol {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.chapters ol::-webkit-scrollbar {
  display: none;
}

.chapters a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--dc-radius-pill);
  color: var(--dc-muted);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.chapters a:hover,
.chapters a[aria-current='true'] {
  background: var(--dc-teal-soft);
  color: var(--dc-teal-dark);
}

.chapters .num {
  color: var(--dc-teal-dark);
  font-size: 12px;
  font-weight: 700;
}

.chapter {
  scroll-margin-top: calc(var(--header) + 72px);
}

.chapter__head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.chapter__num {
  color: var(--dc-teal);
  font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

/* four small steps under the agenda and the automations */

.steps + .feature {
  margin-top: clamp(72px, 10vw, 136px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1023px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* lists with a tick */

.ticks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--dc-ink);
  font-size: 16px;
  line-height: 1.45;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--dc-teal-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6F64' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* the people and the centres (per chi è) */

.role {
  display: grid;
  gap: 16px;
  align-content: start;
}

.role .ticks {
  margin-top: 4px;
}

.centre {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  padding: 0;
}

.centre__media {
  display: grid;
  place-items: center;
  height: 240px;
  padding: 24px 24px 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--dc-teal-soft), #f2fbf9);
}

.centre__media img {
  width: auto;
  max-height: 100%;
  object-fit: contain;
}

.centre__media--window img {
  width: 100%;
  max-height: none;
  align-self: start;
}

.centre__media--phone img {
  width: min(56%, 230px);
  filter: drop-shadow(0 18px 24px rgba(16, 40, 36, 0.18));
  max-height: none;
  align-self: start;
}

.centre__body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 26px 28px 30px;
}

/* the demo form */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-areas:
    'intro form'
    'more form';
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 6vw, 80px);
  row-gap: 28px;
  align-items: start;
}

.demo__intro {
  grid-area: intro;
}

.demo__more {
  grid-area: more;
}

.demo__form {
  grid-area: form;
}

/* on a phone the form comes right after the title, the rest after it */
@media (max-width: 1023px) {
  .demo {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'intro'
      'form'
      'more';
    grid-template-rows: none;
  }
}

.demo__steps {
  display: grid;
  gap: 18px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: demo;
}

.demo__steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  counter-increment: demo;
}

.demo__steps li::before {
  content: counter(demo);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dc-teal-soft);
  color: var(--dc-teal-dark);
  font-weight: 700;
}

.demo__steps strong {
  display: block;
}

.demo__steps span {
  color: var(--dc-muted);
  font-size: 16px;
}

.contact {
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-l);
  background: var(--dc-card);
}

.contact a {
  font-weight: 700;
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-xl);
  background: var(--dc-card);
  box-shadow: var(--dc-shadow-float);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

@media (max-width: 639px) {
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field label {
  font-size: 15px;
  font-weight: 600;
}

.field .optional {
  color: var(--dc-muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cfd9d6;
  border-radius: var(--dc-radius-s);
  background: #fff;
  color: var(--dc-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition:
    border-color var(--dc-dur-fast) ease,
    box-shadow var(--dc-dur-fast) ease;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.field select {
  appearance: none;
  padding-right: 42px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6B69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right 14px center / 18px no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--dc-teal);
  box-shadow: 0 0 0 4px rgba(18, 165, 148, 0.18);
}

.field [aria-invalid='true'] {
  border-color: var(--dc-rose);
}

.field .error {
  color: #b42352;
  font-size: 14px;
  font-weight: 600;
}

.field .error:empty {
  display: none;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.45;
}

.consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--dc-teal-dark);
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
}

.form__actions .button {
  width: 100%;
}

.form__note {
  color: var(--dc-muted);
  font-size: 14px;
}

.form__status {
  padding: 14px 16px;
  border-radius: var(--dc-radius-m);
  font-size: 15px;
  font-weight: 600;
}

.form__status:empty {
  display: none;
}

.form__status--error {
  background: var(--dc-rose-soft);
  color: #9d1d47;
}

.button[aria-busy='true'] {
  opacity: 0.7;
  pointer-events: none;
}

.sent {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 24px 8px;
  text-align: center;
}

.sent .bubble {
  width: 72px;
  height: 72px;
  background: var(--dc-green-soft);
  color: var(--dc-green);
}

.sent .bubble .icon {
  width: 34px;
  height: 34px;
  stroke-width: 2.5;
}

/* legal pages */

.prose {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.prose h2 {
  margin-top: 22px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: #2f3a38;
}

.prose ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--dc-border);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--dc-muted);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

.table-scroll table {
  min-width: 560px;
}

.updated {
  color: var(--dc-muted);
  font-size: 15px;
}

/* footer */

.site-footer {
  padding-block: 64px 40px;
  background: var(--dc-night);
  color: var(--on-dark-muted);
  font-size: 15px;
}

.section--night + .site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(5, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 1023px) {
  .site-footer__top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.site-footer__brand {
  display: grid;
  gap: 14px;
  align-content: start;
}

.site-footer__brand img {
  width: 160px;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer nav ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--on-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
}

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

.site-footer__legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--dc-faint);
  font-size: 14px;
}

/* arriving as they come into view (only once the script is running) */

@media (prefers-reduced-motion: no-preference) {
  .reveal-on .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity var(--dc-dur-base) var(--dc-ease-in),
      transform var(--dc-dur-base) var(--dc-ease-in);
    transition-delay: calc(var(--i, 0) * var(--dc-stagger));
  }

  .reveal-on .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* inside what arrives, its lines come one after the other */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on .reveal .rows .row {
    opacity: 0;
    transform: translateX(-14px);
    transition:
      opacity var(--dc-dur-base) var(--dc-ease-in),
      transform var(--dc-dur-base) var(--dc-ease-in);
  }

  .reveal-on .reveal.is-visible .rows .row {
    opacity: 1;
    transform: none;
  }

  .reveal-on .reveal .rows .row:nth-child(1) { transition-delay: 220ms; }
  .reveal-on .reveal .rows .row:nth-child(2) { transition-delay: 320ms; }
  .reveal-on .reveal .rows .row:nth-child(3) { transition-delay: 420ms; }
  .reveal-on .reveal .rows .row:nth-child(4) { transition-delay: 520ms; }
  .reveal-on .reveal .rows .row:nth-child(5) { transition-delay: 620ms; }
  .reveal-on .reveal .rows .row:nth-child(6) { transition-delay: 720ms; }

  /* the icons pop in with their line */
  .reveal-on .reveal .bubble {
    transition: transform 500ms var(--dc-ease-pop);
  }

  .reveal-on .reveal:not(.is-visible) .bubble {
    transform: scale(0.6);
  }

  /* cards lift a little under the pointer */
  .card {
    transition:
      translate 220ms var(--dc-ease-in),
      box-shadow 220ms var(--dc-ease-in);
  }

  .reveal-on .card.reveal {
    transition:
      opacity var(--dc-dur-base) var(--dc-ease-in),
      transform var(--dc-dur-base) var(--dc-ease-in),
      translate 220ms var(--dc-ease-in),
      box-shadow 220ms var(--dc-ease-in);
    transition-delay:
      calc(var(--i, 0) * var(--dc-stagger)),
      calc(var(--i, 0) * var(--dc-stagger)),
      0s,
      0s;
  }

  @media (hover: hover) {
    .card:hover {
      translate: 0 -4px;
      box-shadow: var(--dc-shadow-float);
    }
  }

  /* the hero's confirmation arrives, then keeps a gentle bob */
  .showcase__toast {
    animation:
      pop 600ms var(--dc-ease-pop) both,
      float 7s ease-in-out 1.4s infinite;
    animation-delay: 880ms, 1.4s;
  }
}

/* breadcrumbs */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--dc-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--dc-border);
}

.breadcrumb a {
  color: var(--dc-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--dc-teal-dark);
  text-decoration: underline;
}

.breadcrumb [aria-current] {
  color: var(--dc-ink);
}

/* an article: its head, the table of contents beside the words */

.article__head {
  padding-block: clamp(40px, 6vw, 80px) clamp(24px, 3vw, 40px);
}

.article__head .h1 {
  margin: 16px 0 18px;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
}

.article__meta {
  margin-top: 18px;
  font-size: 15px;
  color: var(--dc-muted);
}

.article__head .container,
.article__layout {
  max-width: calc(1020px + 2 * var(--gutter));
}

.article__head .container > * {
  max-width: 820px;
}

.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 260px);
  justify-content: space-between;
  gap: 40px;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.article__layout > .prose {
  grid-column: 1;
}

.article__layout > .toc {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  position: sticky;
  top: 96px;
  max-width: 260px;
}

.toc p {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dc-teal-dark);
}

.toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--dc-border);
  list-style: none;
  font-size: 14px;
  line-height: 1.4;
}

.toc a {
  color: var(--dc-muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--dc-teal-dark);
}

@media (max-width: 1100px) {
  .article__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article__layout > .prose,
  .article__layout > .toc {
    grid-column: 1;
  }

  .article__layout > .toc {
    position: static;
    max-width: none;
    grid-row: 1;
    padding: 18px 20px;
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius-l);
    background: var(--dc-card);
  }

  .article__layout {
    max-width: calc(760px + 2 * var(--gutter));
  }
}

/* the words of an article */

.prose {
  font-size: 18px;
  line-height: 1.7;
  color: var(--dc-ink);
}

.prose > *,
.prose li > p {
  margin-block: 0;
}

.prose > * + * {
  margin-top: 1em;
}

.prose > h2 {
  margin-top: 1.9em;
}

.prose h2 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  scroll-margin-top: 96px;
}

.prose h3 {
  margin-top: 1.8em;
  font-size: 1.2rem;
  line-height: 1.3;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose a {
  color: var(--dc-teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--dc-ink);
}

.prose blockquote,
.prose .callout {
  margin-inline: 0;
  padding: 18px 22px;
  border-left: 4px solid var(--dc-teal);
  border-radius: 0 var(--dc-radius-m) var(--dc-radius-m) 0;
  background: var(--dc-teal-soft);
  font-size: 17px;
}

.prose .callout p + p {
  margin-top: 0.6em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.prose .table {
  overflow-x: auto;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--dc-border);
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-weight: 700;
  background: #f1f4f3;
}

.prose .checklist {
  padding: 0;
  list-style: none;
}

.prose .checklist li {
  position: relative;
  padding-left: 32px;
}

.prose .checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border: 2px solid var(--dc-teal);
  border-radius: 5px 5px 5px 2px;
}

.prose .sources {
  margin-top: 2.6em;
  padding-top: 20px;
  border-top: 1px solid var(--dc-border);
  font-size: 15px;
  color: var(--dc-muted);
}

.prose .sources h2 {
  margin-top: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.prose .sources a {
  overflow-wrap: anywhere;
}

.prose .disclaimer {
  font-size: 15px;
  color: var(--dc-muted);
}

/* the cards of the articles */

.post-grid {
  align-items: stretch;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-card h3 a {
  color: inherit;
  text-decoration: none;
}

.post-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post-card {
  position: relative;
}

.post-card h3 a:focus-visible {
  outline: none;
}

.post-card:has(a:focus-visible) {
  outline: 3px solid var(--dc-teal-dark);
  outline-offset: 2px;
}

.post-card p {
  color: var(--dc-muted);
}

.post-card__category {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dc-teal-dark);
}

.post-card__meta {
  margin-top: auto;
  font-size: 14px;
}

.post-group + .post-group {
  margin-top: clamp(48px, 6vw, 72px);
}

.post-group > .h3 {
  margin-bottom: 20px;
}

.related {
  padding-block: clamp(56px, 8vw, 96px);
}

/* the glossary */

.glossary {
  display: grid;
  gap: 0;
  margin: 0;
}

.glossary dt {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--dc-border);
  font-size: 1.2rem;
  font-weight: 700;
  scroll-margin-top: 96px;
}

.glossary dt:first-child {
  margin-top: 0;
}

.glossary dd {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--dc-ink);
}

.glossary dd a {
  color: var(--dc-teal-dark);
}

.glossary-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.glossary-index a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-pill);
  font-size: 14px;
  color: var(--dc-ink);
  text-decoration: none;
  background: var(--dc-card);
}

.glossary-index a:hover {
  border-color: var(--dc-teal);
}

/* a page for one kind of centre */

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

/* the 404 */

.lost {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding-block: clamp(80px, 12vw, 160px);
  text-align: center;
}

.lost img {
  width: min(240px, 60vw);
}

/* Copyright (c) 2026, NPM2 Solutions Srl and contributors
   Da mettere in fondo a css/sito.css (dopo tutte le altre regole). */

/* ======================================================================
   Il design system DottorCloud sul sito (2026)
   Stessi colori, stessa croce, stessa nuvola del gestionale (brand/dottorcloud/
   design-system/espresso), ma nella versione "espressiva": testi grandi,
   blocchi di colore pieno come nella copertina, la croce come segno e come
   motivo. Il gestionale è compatto (Espresso), il sito racconta.
   I tre segni:
   - la NUVOLA-D: tre angoli tondi e quello in basso a sinistra quasi dritto;
   - la CROCE: il punto del marchio (elenchi, etichette, domande, voce attiva);
   - i BLOCCHI: verde scuro, verde del logo, menta, inchiostro.
   ====================================================================== */

:root {
  --tail: 4px;                               /* la coda della nuvola */
  --teal-950: #0b2e2a;
  --teal-800: #095a51;
  --mint-hover: #86e8d8;
  --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 0h4v4h4v4H8v4H4V8H0V4h4z'/%3E%3C/svg%3E");
  --crosses: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M16.5 10h7v6.5H30v7h-6.5V30h-7v-6.5H10v-7h6.5z'/%3E%3C/svg%3E");
  --dc-bg: #f6f8f7;
  --dc-border: #e1e6e4;
}

/* la croce come segno: <i class="x"></i> o un ::before con mask */
.x,
.chip::before,
.row:not(:has(.bubble))::before,
.faq summary::after {
  -webkit-mask: var(--cross) center / contain no-repeat;
  mask: var(--cross) center / contain no-repeat;
}

/* il motivo delle croci, solo dentro i blocchi */
.crosses {
  background: var(--c, var(--dc-mint));
  -webkit-mask: var(--crosses) 0 0 / var(--pitch, 40px) var(--pitch, 40px) repeat;
  mask: var(--crosses) 0 0 / var(--pitch, 40px) var(--pitch, 40px) repeat;
}

::selection {
  background: var(--dc-mint);
  color: var(--teal-950);
}

:focus-visible {
  outline: 3px solid var(--dc-teal-dark);
  border-radius: 6px 6px 6px 2px;
}

/* type: titoli pieni e stretti, come nella copertina */
.display {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.h1 { font-weight: 800; letter-spacing: -0.04em; }
.h2 { font-weight: 800; letter-spacing: -0.035em; }
.h3 { letter-spacing: -0.025em; }
.accent { color: var(--dc-teal-dark); }

/* etichette di sezione: niente pillola, la croce e il maiuscoletto */
.chip {
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--dc-teal-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chip::before {
  content: '';
  width: 12px;
  height: 12px;
  flex: none;
  background: var(--dc-teal);
}
.chip .icon { display: none; }
.chip--dark,
.section--night .chip,
.hero--dark .chip,
.section--teal .chip { background: none; color: var(--dc-mint); }
.chip--dark::before,
.section--night .chip::before,
.hero--dark .chip::before,
.section--teal .chip::before { background: var(--dc-mint); }
.chip--inline,
.chip--soon {
  padding: 3px 10px 3px 8px;
  border-radius: 999px 999px 999px var(--tail);
  background: var(--dc-night);
  color: var(--dc-mint);
  letter-spacing: 0.04em;
}
.chip--inline::before,
.chip--soon::before { width: 9px; height: 9px; background: var(--dc-mint); }

/* bottoni: il pieno del marchio, la coda della nuvola */
.button {
  border-radius: 14px 14px 14px var(--tail);
  font-weight: 700;
}
.button--primary { box-shadow: none; }
.button--primary:hover,
.button--secondary:hover,
.button--mint:hover { transform: none; }
.button--primary:hover { background: var(--teal-800); }
.button--secondary { box-shadow: none; border-color: #cdd6d3; }
.button--secondary:hover { border-color: var(--dc-ink); }
.button--mint:hover { background: var(--mint-hover); }
.button--small { border-radius: 12px 12px 12px var(--tail); }
.button .icon { transition: transform var(--dc-dur-fast) var(--dc-ease-pop); }
.button:hover .icon:last-child { transform: translateX(2px); }

/* header: la voce corrente segnata dalla croce */
.nav a:not(.button)[aria-current='page'] {
  position: relative;
  color: var(--dc-ink);
}
.nav a:not(.button)[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: var(--dc-teal);
  -webkit-mask: var(--cross) center / contain no-repeat;
  mask: var(--cross) center / contain no-repeat;
}
.nav a:not(.button):hover { background: rgba(11, 111, 100, 0.07); border-radius: 10px 10px 10px var(--tail); }

/* hero: i blocchi della copertina dietro al prodotto */
.hero::before,
.hero::after { display: none; }
.hero .showcase { isolation: isolate; }
.hero .showcase::before,
.hero .showcase::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 28px 28px 28px var(--tail);
}
/* la lastra verde scuro con le croci, a sinistra in basso */
.hero .showcase::before {
  left: -5%;
  top: 22%;
  bottom: 6%;
  width: 26%;
  background: var(--dc-teal-dark);
}
/* il blocco menta con la gobba, dietro al telefono */
.hero .showcase::after {
  right: -9%;
  top: 12%;
  width: 30%;
  height: 58%;
  background: var(--dc-mint);
}
.showcase__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.showcase__art .crosses {
  position: absolute;
  left: -5%;
  top: 22%;
  bottom: 6%;
  width: 26%;
  --c: var(--dc-mint);
  opacity: 0.9;
  border-radius: 28px 28px 28px var(--tail);
  -webkit-mask-position: 20px 20px;
  mask-position: 20px 20px;
}
.showcase__art .bump {
  position: absolute;
  right: -6%;
  top: calc(12% - 44px);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--dc-mint);
  clip-path: inset(0 0 50% 0);
}
.showcase__main { border-radius: 12px 12px 12px var(--tail); }

/* il toast del prodotto, come nel gestionale: verde profondo e menta */
.toast {
  border: 0;
  border-radius: 16px 16px 16px var(--tail);
  background: var(--teal-950);
  color: #e1f5f1;
  box-shadow: 0 24px 50px -18px rgba(11, 46, 42, 0.6);
}
.toast__icon {
  border-radius: 12px 12px 12px var(--tail);
  background: var(--dc-mint);
  color: var(--teal-950);
}
.toast__text span { color: #9fd3c9; }

/* le funzioni in breve: nuvolette */
.pill {
  border-radius: 999px 999px 999px var(--tail);
  border-color: var(--dc-border);
  font-weight: 600;
}
.pill .icon { color: var(--dc-teal-dark); }

/* le icone in una nuvola (non più nel cerchio) */
.bubble { border-radius: 50% 50% 50% 22%; }
.card .check { border-radius: 50% 50% 50% 22%; background: var(--dc-teal-dark); }

/* elenchi senza icona: la croce come punto */
.row:not(:has(.bubble)) {
  grid-template-columns: 14px 1fr;
  column-gap: 14px;
}
.row:not(:has(.bubble))::before {
  content: '';
  width: 12px;
  height: 12px;
  margin-top: 6px;
  background: var(--dc-teal);
}
.section--night .row:not(:has(.bubble))::before,
.section--teal .row:not(:has(.bubble))::before,
.hero--dark .row:not(:has(.bubble))::before,
.feature--dark .row:not(:has(.bubble))::before { background: var(--dc-mint); }

.ticks li::before {
  border-radius: 50% 50% 50% 22%;
  background-color: var(--dc-teal-soft);
}

/* carte e riquadri: la nuvola */
.card,
.contact,
.faq details,
.form-card,
.video,
.feature--dark,
.centre {
  border-radius: 20px 20px 20px var(--tail);
}
.card { box-shadow: none; }
.card--link:hover { border-color: var(--dc-teal); box-shadow: none; transform: none; }

/* il percorso del paziente: tappe a nuvola su una linea piena */
.journey::before { background: var(--dc-teal); height: 2px; opacity: 0.35; }
.journey .bubble {
  border-radius: 50% 50% 50% 22%;
  border-color: var(--dc-teal-dark);
  box-shadow: 0 0 0 8px var(--dc-card);
}
.journey a:hover .bubble { background: var(--dc-teal-dark); }
.journey .step::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  vertical-align: 1px;
  background: var(--dc-teal);
  -webkit-mask: var(--cross) center / contain no-repeat;
  mask: var(--cross) center / contain no-repeat;
}
@media (max-width: 1023px) {
  .journey::before { width: 2px; height: auto; }
}

/* la fascia dei numeri: blocchi pieni come nella copertina */
.section--teal { position: relative; overflow: clip; isolation: isolate; }
.section--teal::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  z-index: -1;
  width: min(420px, 45vw);
  height: 240px;
  background: var(--dc-mint);
  opacity: 0.16;
  -webkit-mask: var(--crosses) 0 0 / 40px 40px repeat;
  mask: var(--crosses) 0 0 / 40px 40px repeat;
}
.numbers .card {
  border-radius: 24px 24px 24px var(--tail);
}
.numbers .card:nth-child(1) { background: var(--dc-mint); color: var(--teal-950); }
.numbers .card:nth-child(1) p,
.numbers .card:nth-child(1) .figure { color: var(--teal-950); }
.numbers .card:nth-child(2) { background: var(--dc-night); }
.numbers .card:nth-child(2) p { color: #cfe7e2; }
.numbers .card:nth-child(3) { background: #fff; color: var(--dc-ink); }
.numbers .card:nth-child(3) p { color: var(--dc-muted); }
.numbers .card:nth-child(3) .figure { color: var(--dc-teal-dark); }
.numbers .figure { font-weight: 800; letter-spacing: -0.06em; }

/* il video: incorniciato a nuvola, play menta a nuvola */
.video__play .circle { border-radius: 50% 50% 50% 22%; box-shadow: none; }

/* domande: la croce che ruota e diventa una x */
.faq details { box-shadow: none; }
.faq details[open] { border-color: var(--dc-teal); }
.faq summary .icon { display: none; }
.faq summary::after {
  content: '';
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--dc-teal-dark);
  transition: transform var(--dc-dur-fast) var(--dc-ease-pop);
}
.faq details[open] summary::after { transform: rotate(45deg); }

/* le fasce scure: il motivo delle croci in un angolo */
.section--night { position: relative; overflow: clip; isolation: isolate; }
.section--night::before {
  content: '';
  position: absolute;
  left: -20px;
  bottom: -20px;
  z-index: -1;
  width: min(360px, 40vw);
  height: 200px;
  background: var(--dc-teal);
  opacity: 0.22;
  -webkit-mask: var(--crosses) 0 0 / 40px 40px repeat;
  mask: var(--crosses) 0 0 / 40px 40px repeat;
}

/* la chiusura: i blocchi del marchio ai lati */
.section:has(> .closing) { padding-block: clamp(96px, 12vw, 160px); }
.section:has(> .closing)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
  width: clamp(120px, 18vw, 260px);
  height: 62%;
  border-radius: 0 0 0 28px;
  background: var(--dc-teal-dark);
}
.closing__mint {
  position: absolute;
  right: clamp(140px, 20vw, 290px);
  top: 0;
  width: clamp(60px, 7vw, 110px);
  height: 32%;
  border-radius: 0 0 28px var(--tail);
  background: var(--dc-mint);
}
@media (max-width: 767px) {
  .section:has(> .closing)::after { width: 80px; height: 120px; }
  .closing__mint { display: none; }
}

/* le pagine interne: indice dei capitoli e numeri */
.chapters a { border-radius: 999px 999px 999px var(--tail); }
.chapters a[aria-current='true'] { background: var(--dc-teal-dark); color: #fff; }
.chapters a[aria-current='true'] .num { color: var(--dc-mint); }
.chapter__num { color: var(--dc-teal-dark); font-weight: 800; letter-spacing: -0.06em; }
.centre__media { background: var(--dc-teal-soft); }
.demo__steps li::before { border-radius: 50% 50% 50% 22%; background: var(--dc-teal-dark); color: #fff; }

/* moduli */
.field input,
.field select,
.field textarea { border-radius: 10px 10px 10px var(--tail); border-color: #c9d3d0; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--dc-teal-dark); box-shadow: 0 0 0 3px rgba(95, 224, 204, 0.45); }
.form__status { border-radius: 12px 12px 12px var(--tail); }
.consent input { accent-color: var(--dc-teal-dark); }

/* footer */
.site-footer h2 { display: flex; align-items: center; gap: 8px; letter-spacing: 0.08em; }
.site-footer h2::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--dc-mint);
  -webkit-mask: var(--cross) center / contain no-repeat;
  mask: var(--cross) center / contain no-repeat;
}

/* il movimento dei segni: le croci scorrono piano dentro i loro blocchi,
   in diagonale, di un passo del motivo e ricominciano senza scatti; la gobba
   respira. Fermi con prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .crosses,
  .section--teal::after,
  .section--night::before {
    animation: croci-scorrono 14s linear infinite;
  }
  .showcase__art .crosses { animation-name: croci-scorrono-mezzo-passo; }
  .section--night::before { animation-duration: 18s; animation-direction: reverse; }
  .showcase__art .bump { animation: gobba-respira 6s ease-in-out infinite; }
}
@keyframes croci-scorrono {
  from { -webkit-mask-position: 0 0; mask-position: 0 0; }
  to { -webkit-mask-position: 40px 40px; mask-position: 40px 40px; }
}
@keyframes croci-scorrono-mezzo-passo {
  from { -webkit-mask-position: 20px 20px; mask-position: 20px 20px; }
  to { -webkit-mask-position: 60px 60px; mask-position: 60px 60px; }
}
@keyframes gobba-respira {
  50% { translate: 0 -6px; }
}
