/* Better Mondays — landing page styles
   Tokens follow the brand guide (bettermondays-html/better-mondays-brand-guide-v1.8.html). */

:root {
  color-scheme: dark;

  --ground: #0e0b1f;        /* Deep Aubergine: page background */
  --raised: #17132c;        /* cards, nav, panels */
  --sunken: #110e24;        /* pipeline columns, insets inside cards */
  --hair: #2a2547;          /* borders and dividers */
  --ink: #f8f7f4;           /* headlines and strong text */
  --muted: #ada7cc;         /* body copy, captions */
  --purple: #5b3df5;        /* Electric Purple: fills */
  --purple-text: #9c8cff;   /* purple as text / icons on dark */
  --orange: #ff6b35;        /* Signal Orange: action, highlights */
  --on-orange: #0e0b1f;     /* text on orange, never white */
  --tag: #b4aaf5;           /* tagline under the wordmark */
  --orange-soft: rgba(255, 107, 53, 0.1);
  --purple-soft: rgba(91, 61, 245, 0.14);
  --stripes: repeating-linear-gradient(
    135deg,
    transparent 0 18px,
    var(--purple) 18px 28px,
    transparent 28px 46px,
    var(--orange) 46px 56px
  );

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-pill: 999px;

  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--muted);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
strong, b { color: var(--ink); font-weight: 600; }

/* Language switching: elements carry data-l="it" or data-l="en" */
html[data-lang="it"] [data-l="en"],
html[data-lang="en"] [data-l="it"] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--orange); color: var(--on-orange); padding: 8px 12px; border-radius: var(--radius-s); }

/* Uppercase label above headlines and inside feature rows */
.eyebrow {
  display: block;
  font: 500 13px/1.4 var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 14px;
}

/* The one highlighted phrase in a headline */
.hl { color: var(--orange); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding: 0 var(--gutter);
  margin-top: 12px;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 6px 10px 6px 14px;
  background: rgba(23, 19, 44, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hair);
  border-radius: var(--radius-m);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }

/* Brand assets in assets/brand/ are used as-is; only their size is set here.
   The lockup SVGs include their own clear space, so the box is taller than the visible logo. */
.brand-logo { display: block; height: 52px; width: auto; flex: none; }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--hair);
  border-radius: var(--radius-pill);
  padding: 3px;
  background: var(--ground);
}
.lang-toggle button {
  font: 500 13px/1 var(--text);
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--ground);
}

/* ---------- Buttons ---------- */

/* Pills: orange filled for the primary action, each ending in an arrow. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 500 15px/1.3 var(--text);
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-primary,
.btn-won { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover,
.btn-won:hover { background: #ff7f50; }
.btn-primary::after,
.btn-won::after {
  content: "→";
  content: "→" / "";
  font-size: 1.05em;
  line-height: 1;
}
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-large { padding: 16px 28px; font-size: 16px; }
/* Long label inside narrow cards: let it wrap rather than overflow. */
.btn-block { width: 100%; white-space: normal; text-align: center; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 7vw, 96px);
  overflow-x: hidden;
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
  text-wrap: balance;
}

.hero-sub {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 32px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Risk reversal line, directly under a CTA */
.risk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34em;
}
.risk-icon { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--purple-text); }

/* Social proof row */
.proof {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  max-width: 34em;
}
.proof-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 28px;
  margin-bottom: 10px;
}
.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.proof .logo { font-size: 17px; height: 28px; color: var(--muted); }
.proof .logo img { height: 22px; width: auto; }

/* Client names double as tabs for the quote below them */
.proof-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0 0 6px;
  box-sizing: content-box;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.proof-tab:hover { opacity: 0.9; }
.proof .proof-tab[aria-selected="true"] { color: var(--ink); opacity: 1; border-bottom-color: var(--orange); }
.proof-quote[hidden] { display: none; }
.proof-quote {
  margin: 6px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--orange);
}
.proof-quote blockquote { margin: 0; }
.proof-quote blockquote p { margin: 0; font-size: 15px; line-height: 1.55; color: #e4e1ee; }
.proof-quote figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

/* Pipeline board, with brand stripes peeking out behind it */

.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  top: -44px;
  right: calc(-1 * var(--gutter));
  width: 48%;
  height: 62%;
  background: var(--stripes);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.board {
  position: relative;
  z-index: 1;
  background: var(--raised);
  border: 1px solid var(--hair);
  border-radius: var(--radius-m);
  padding: 18px;
  box-shadow: 0 24px 60px rgba(5, 3, 15, 0.45);
}

.board-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 16px;
  font-size: 14px;
  color: var(--muted);
}
.board-title { color: var(--ink); font-weight: 500; }
.board-count strong { color: var(--orange); font-weight: 600; font-variant-numeric: tabular-nums; }

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

.col {
  background: var(--sunken);
  border: 1px solid var(--hair);
  border-radius: var(--radius-m);
  padding: 10px;
  min-height: 210px;
  transition: background-color 0.8s ease;
}
.col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  margin: 2px 2px 12px;
  color: var(--ink);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple-text); flex: none; }
.col-won .dot { background: var(--orange); }
.col-won .col-head { color: var(--orange); }
.col-won.is-hit { background: var(--orange-soft); }

.deal {
  background: var(--raised);
  border: 1px solid var(--hair);
  border-radius: var(--radius-s);
  padding: 9px 10px;
  margin-bottom: 8px;
  font-size: 12.5px;
  line-height: 1.35;
}
.deal-name { font-weight: 500; color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-meta { color: var(--muted); display: block; }

.deal-ghost { opacity: 0.7; }

.deal-live {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  z-index: 2;
  background: #1f1a3a;
  border-color: #3a3363;
  box-shadow: 0 6px 16px rgba(5, 3, 15, 0.4);
  /* Calm glide: symmetric ease-in-out, no overshoot. */
  transition:
    transform 1.2s cubic-bezier(0.45, 0, 0.55, 1),
    background-color 0.6s ease,
    border-color 0.6s ease,
    opacity 0.5s ease;
  will-change: transform;
}
.deal-live .check {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  margin-left: auto;
  flex: none;
  place-items: center;
}
.deal-live .check svg { width: 9px; height: 9px; }
.deal-live .deal-row { display: flex; align-items: center; gap: 6px; }
.deal-live.is-won { background: #2a1a2a; border-color: var(--orange); }
.deal-live.is-won .check { display: grid; }
.deal-live.no-anim { transition: none; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding-top: 0; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2,
.cta-final h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  text-wrap: balance;
}
/* Short orange accent rule under section headlines */
.section-head h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
  margin-top: 20px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }
.section-head .eyebrow { color: var(--orange); font-size: 13px; margin: 0 0 14px; }

/* The problem */

.pains {
  list-style: none;
  counter-reset: pain;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pains li {
  counter-increment: pain;
  background: var(--raised);
  border: 1px solid var(--hair);
  border-radius: var(--radius-m);
  padding: 22px 24px;
  color: #e4e1ee;
  font-size: 16px;
  line-height: 1.55;
}
.pains li::before {
  content: counter(pain, decimal-leading-zero);
  display: block;
  font: 700 14px/1 var(--display);
  color: var(--orange);
  margin-bottom: 12px;
}

/* One-line statement closing a section */
.statement {
  margin: clamp(32px, 4vw, 48px) 0 0;
  max-width: 34em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

/* Feature rows: items split by vertical hairlines */

.values,
.steps {
  display: grid;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.values { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.value,
.steps li { padding: clamp(24px, 2.6vw, 32px) clamp(18px, 2vw, 28px); }
.value:first-child,
.steps li:first-child { padding-left: 0; }
.value + .value,
.steps li + li { border-left: 1px solid var(--hair); }
.value-kicker { margin-bottom: 12px; }
.value h3,
.steps h3 {
  font-family: var(--display);
  font-size: clamp(18px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 8px;
}
.value p,
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* Services */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.service {
  background: var(--raised);
  border: 1px solid var(--hair);
  border-radius: var(--radius-m);
  padding: clamp(24px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.chip {
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hair);
  background: var(--ground);
  color: var(--muted);
}
.chip-won { background: var(--orange-soft); border-color: rgba(255, 107, 53, 0.35); color: var(--orange); }

.service h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 10px;
}
.service-lead { color: #e4e1ee; margin: 0 0 12px; }
.service-for { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }

.includes-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tag);
  margin: 0 0 8px;
}

.service-foot { margin-top: auto; padding-top: 10px; }

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 4px;
}
.price-now { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.price-now small { font-family: var(--text); font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 17px; opacity: 0.8; }
.price-note { font-size: 14px; color: var(--muted); margin: 0 0 20px; }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--orange);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  flex: none;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }

.includes {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 14.5px;
  color: #e4e1ee;
}
.includes li {
  position: relative;
  padding: 8px 0 8px 24px;
  border-top: 1px solid var(--hair);
}
.includes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--orange);
  border-bottom: 1.6px solid var(--orange);
  transform: rotate(-45deg);
}

.extra { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.extra + .extra { margin-top: 8px; }

.guarantee {
  background: var(--purple-soft);
  border: 1px solid rgba(156, 140, 255, 0.22);
  color: #d9d4f5;
  border-radius: var(--radius-m);
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.5;
}
.guarantee b {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-text);
  margin-bottom: 4px;
}

.service .btn { margin-top: 16px; }

/* Process */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.step-icon { width: 24px; height: 24px; color: var(--purple-text); margin-bottom: 18px; display: block; }
.steps li.is-won .step-icon { color: var(--orange); }
.step-when {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tag);
  margin-bottom: 6px;
}

/* Case studies */

.cases { display: grid; gap: 16px; }

.case {
  background: var(--raised);
  border: 1px solid var(--hair);
  border-radius: var(--radius-m);
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  overflow: hidden;
}
.case-body { padding: clamp(24px, 4vw, 44px); }
.case-logo {
  height: 36px;
  margin-bottom: 18px;
  font-size: 20px;
  color: var(--muted);
}
.case-logo img { height: 32px; width: auto; }
.case h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}
.case-who { color: var(--muted); margin: 0 0 24px; font-size: 15px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 26px;
  padding: 0;
}
.stat { display: flex; flex-direction: column; border-top: 1px solid var(--hair); padding-top: 14px; }
.stat dd {
  order: 1;
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 28px);
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.stat dt { order: 2; font-size: 14px; color: var(--muted); line-height: 1.4; }

.case .includes-title { margin-bottom: 10px; }
.case-list { margin: 0; padding-left: 18px; color: #e4e1ee; font-size: 15px; }
/* Case with a written testimonial in the side column */
.case-quoted { grid-template-columns: 1.25fr 1fr; }
.case-quote { margin: 0; }
.case-quote::before {
  content: "“";
  display: block;
  font: 800 56px/0.7 var(--display);
  color: var(--orange);
  margin-bottom: 8px;
}
.case-quote blockquote { margin: 0; }
.case-quote blockquote p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: #e4e1ee; }
.case-quote figcaption { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--muted); }
.case-list li { margin-bottom: 6px; }
.case-list li::marker { color: var(--orange); }

.case-side {
  background: var(--sunken);
  border-left: 1px solid var(--hair);
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.video-slot {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-m);
  border: 1px dashed #3a3363;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 14.5px;
}
.video-slot .play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}
.video-slot .play svg { width: 14px; height: 14px; margin-left: 2px; }

.inline-cta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
  border-radius: var(--radius-m);
  border: 1px solid var(--hair);
  background: linear-gradient(135deg, rgba(91, 61, 245, 0.22), rgba(255, 107, 53, 0.12));
}
.inline-cta p {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* About */

.about { display: grid; gap: 0 56px; }
.about .section-head { margin-bottom: 24px; }
.about-body p { margin: 0 0 16px; font-size: 17px; max-width: 60ch; }
.about-body strong { color: var(--ink); }
.about-line {
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--hair);
  max-width: none;
}

/* FAQ */

.faq { max-width: 820px; }
.faq details {
  border-top: 1px solid var(--hair);
  padding: 20px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { font-size: 17px; }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 64ch; }

/* Final CTA */

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--raised);
  border-top: 1px solid var(--hair);
}
.section-dark::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -40px;
  width: 34%;
  background: var(--stripes);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.cta-final { position: relative; z-index: 1; }
.cta-final h2 { max-width: 14ch; }
.cta-final p { color: var(--muted); max-width: 52ch; font-size: 18px; margin: 0 0 32px; }
.cta-final p.risk { font-size: 15px; margin: 18px 0 0; }

/* Footer */

.site-footer {
  background: var(--ground);
  color: var(--muted);
  border-top: 1px solid var(--hair);
  padding: clamp(40px, 5vw, 56px) 0 28px;
  font-size: 14px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.site-footer .brand-logo { height: 64px; margin-left: -8px; }
.footer-tagline {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tag);
  margin: 0;
}
.footer-legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
}
.site-footer a { color: var(--muted); }

/* ---------- Responsive ---------- */

/* Wide screens: copy left, a 3-stage board right, both in the first screen. */
@media (min-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; }
  .hero .columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero .col-optional { display: none; }
  .hero .col { min-height: 230px; }
  .hero-visual::before { top: -64px; right: -80px; width: 60%; height: 70%; }
}

@media (min-width: 1080px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .about .section-head { margin-bottom: 0; }
  .about-line { grid-column: 1 / -1; margin-top: 48px; }
}

@media (max-width: 1079px) {
  .hero-visual { margin-top: 28px; }
}

@media (max-width: 1020px) {
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value:nth-child(odd) { border-left: 0; padding-left: 0; }
  .value:nth-child(n + 3) { border-top: 1px solid var(--hair); }
  .value:last-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .case-side { border-left: 0; border-top: 1px solid var(--hair); }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding-left: 0; padding-right: 0; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--hair); }
  .section-dark::after { width: 46%; opacity: 0.35; }
}

@media (max-width: 720px) {
  .nav-actions .btn { display: none; }
  .brand-logo { height: 46px; }
  .values { grid-template-columns: 1fr; }
  .value { padding-left: 0; padding-right: 0; }
  .pains { grid-template-columns: 1fr; }
  .value + .value { border-left: 0; border-top: 1px solid var(--hair); }
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .board { padding: 14px; }
  .board-bar { flex-direction: column; align-items: flex-start; gap: 2px; }
  .btn-large,
  .inline-cta .btn { width: 100%; white-space: normal; text-align: center; padding: 16px 18px; }
  .hero-ctas .btn { flex: 1 1 auto; }
}

@media (max-width: 600px) {
  .columns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .col-optional { display: none; }
  .col { min-height: 170px; padding: 9px 7px; }
  .col-head { font-size: 13px; margin-bottom: 10px; align-items: flex-start; }
  .col-head .dot { margin-top: 6px; }
  .deal { padding: 7px 8px; font-size: 11.5px; }
}

/* Keeps hyphenated words like "scale-up" on one line */
.nowrap { white-space: nowrap; }

/* ---------- Comparison ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}
.compare th,
.compare td { padding: 18px 20px; vertical-align: top; font-weight: 400; }
.compare tbody th,
.compare tbody td { border-top: 1px solid var(--hair); }
.compare thead td { width: 17%; }
.compare thead th {
  font: 600 15px/1.35 var(--display);
  color: var(--muted);
  vertical-align: bottom;
}
.compare tbody th {
  font: 600 15px/1.35 var(--display);
  color: var(--ink);
  padding-left: 0;
}
.compare td { color: var(--muted); }

/* Better Mondays column: purple header, tinted cells, purple edge */
.compare .compare-us {
  background: var(--purple-soft);
  border-left: 1px solid var(--purple);
  border-right: 1px solid var(--purple);
  color: var(--ink);
}
.compare thead .compare-us {
  background: var(--purple);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border-radius: var(--radius-m) var(--radius-m) 0 0;
}
.compare tbody tr:last-child .compare-us {
  border-bottom: 1px solid var(--purple);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
}

.compare-note { margin: 20px 0 0; font-size: 13px; color: var(--muted); max-width: 70ch; }
.compare-cta { margin-top: 28px; }

/* Under 768px: one card per row, the three options stacked inside it */
@media (max-width: 767px) {
  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td { display: block; }
  .compare thead { display: none; }

  .compare tbody tr {
    background: var(--raised);
    border: 1px solid var(--hair);
    border-radius: var(--radius-m);
    padding: 20px;
    margin-bottom: 14px;
  }
  .compare tbody th { border: 0; padding: 0 0 4px; font-size: 19px; font-weight: 700; }
  .compare tbody td { border: 0; padding: 14px 0 0; }
  .compare tbody td::before {
    display: block;
    font: 500 11.5px/1.4 var(--text);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tag);
    margin-bottom: 4px;
  }
  html[data-lang="it"] .compare tbody td::before { content: attr(data-col-it); }
  html[data-lang="en"] .compare tbody td::before { content: attr(data-col-en); }

  .compare tbody .compare-us,
  .compare tbody tr:last-child .compare-us {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--purple);
    border-radius: var(--radius-s);
  }
  .compare tbody .compare-us::before { color: var(--purple-text); }
}
