/* ModoLeads, brand system from Marzio's moodboard (12/10/2026):
   Midnight #1A1D26, Sky #8FA3C7, Sand #F5F2EC, Blush #F1C9B8, Stone #C9C1B8; type Inter / Manrope. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* palette */
  --midnight: #1a1d26;
  --sky: #8fa3c7;
  --sand: #f5f2ec;
  --blush: #f1c9b8;
  --stone: #c9c1b8;
  /* tints of the palette */
  --midnight-2: #252a36;
  --sky-ink: #5b6f97;          /* Sky darkened for text on Sand (contrast) */
  --sky-soft: #e3e8f2;
  --blush-soft: #f8e6de;
  --stone-soft: #ebe6df;
  --paper: #fbfaf7;
  --muted: #5d606b;
  --line: #e2dcd3;
  --brand-gradient: linear-gradient(90deg, var(--midnight) 0%, var(--sky) 30%, var(--sand) 55%, var(--blush) 78%, var(--stone) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(26, 29, 38, .05), 0 12px 32px rgba(26, 29, 38, .07);
  --wrap: 1180px;
  --header-h: 76px;
  --accent: var(--sky);        /* read by the Blog Studio pages for links and labels */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--midnight);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.7rem); }
h3 { font-size: 1.14rem; letter-spacing: -0.01em; }
p { margin: 0; }
.accent { color: var(--sky-ink); }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(76px, 10vw, 128px) 0; }
.section-head { max-width: 700px; margin-bottom: 52px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
/* thin, wide-tracked caps, as in the moodboard labels */
.label {
  display: inline-block;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.label::after { content: ""; display: block; width: 28px; height: 1px; background: currentColor; opacity: .5; margin-top: 14px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* logo: "Modo" in Midnight, "Leads" in Sky */
.logo { display: inline-flex; align-items: baseline; font-weight: 750; font-size: 1.45rem; letter-spacing: -0.04em; text-decoration: none; line-height: 1; }
.logo-modo { color: var(--midnight); }
.logo-leads { color: var(--sky); }
.on-dark .logo-modo { color: #fff; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-dark { background: var(--midnight); color: #fff; }
.btn-dark:hover { background: var(--midnight-2); }
.btn-outline { border-color: var(--midnight); color: var(--midnight); }
.btn-outline:hover { background: var(--midnight); color: #fff; }
.btn-light { background: #fff; color: var(--midnight); }
.btn-light:hover { background: var(--sand); }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--midnight); }
.btn-small { padding: 10px 20px; font-size: .92rem; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* header: transparent on the dark hero, Sand once you scroll */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .25s, border-color .25s, box-shadow .25s;
  border-bottom: 1px solid transparent;
}
.header-inner { display: flex; align-items: center; gap: 30px; height: 100%; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .94rem; font-weight: 550; opacity: .8; }
.nav a:hover { opacity: 1; }
.lang { display: flex; gap: 2px; font-size: .8rem; font-weight: 650; letter-spacing: .08em; border: 1px solid currentColor; border-radius: 999px; padding: 3px; opacity: .9; }
.lang a { text-decoration: none; padding: 3px 10px; border-radius: 999px; }
.site-header.on-dark { color: #fff; }
.site-header.on-dark .lang a[aria-current="page"] { background: #fff; color: var(--midnight); }
.site-header.solid { background: rgba(245, 242, 236, .92); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); border-bottom-color: var(--line); color: var(--midnight); }
.site-header.solid .logo-modo { color: var(--midnight); }
.site-header.solid .lang a[aria-current="page"] { background: var(--midnight); color: #fff; }
.site-header .header-cta { display: none; }
.site-header.solid .header-cta { display: inline-flex; }

/* hero: Midnight with the architecture photo, like the desktop mockup */
.hero { position: relative; background: var(--midnight); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0 0 0 38%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--midnight) 0%, rgba(26, 29, 38, .82) 22%, rgba(26, 29, 38, .25) 55%, rgba(26, 29, 38, .05) 100%);
}
.hero-inner { position: relative; z-index: 1; min-height: min(92vh, 860px); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 56px) 0 72px; }
.hero-copy { max-width: 600px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .92);
  margin-bottom: 28px;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.hero h1 { font-weight: 650; }
.hero-tag { margin-top: 18px; font-size: 1.15rem; letter-spacing: .02em; color: var(--blush); font-weight: 550; }
.hero-sub { margin-top: 22px; font-size: 1.12rem; color: rgba(245, 242, 236, .78); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-micro { margin-top: 18px; font-size: .9rem; color: rgba(245, 242, 236, .7); display: flex; align-items: center; gap: 8px; }
.hero-micro svg { width: 18px; height: 18px; color: var(--sky); flex: none; }

/* benefit strip: the four icons of the moodboard */
.benefits { background: var(--paper); border-bottom: 1px solid var(--line); }
.benefits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.benefits li { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 12px; text-align: center; font-weight: 550; font-size: .98rem; }
.benefits li + li { border-left: 1px solid var(--line); }
.benefits svg { width: 38px; height: 38px; color: var(--midnight); }

/* problem */
.problem-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.problem-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.problem-aside .section-head { margin-bottom: 32px; }
.photo { border-radius: var(--radius); overflow: hidden; background: var(--stone-soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.problem-aside .photo { aspect-ratio: 4 / 4.2; }
.problem-list { display: grid; gap: 16px; }
.problem-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.problem-card h3 { margin-bottom: 10px; }
.problem-card p { color: var(--muted); }
.problem-num { font-size: .8rem; font-weight: 600; letter-spacing: .2em; color: var(--sky-ink); margin-bottom: 14px; display: block; }

/* steps: number tiles echo the "M." tile variations */
.how { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.step { padding: 30px 26px; border-radius: var(--radius); background: var(--sand); border: 1px solid var(--line); }
.step-num {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 750; font-size: 1.2rem; margin-bottom: 26px;
}
.step:nth-child(1) .step-num { background: var(--midnight); color: #fff; }
.step:nth-child(2) .step-num { background: #fff; color: var(--midnight); border: 1px solid var(--line); }
.step:nth-child(3) .step-num { background: var(--blush); color: var(--midnight); }
.step:nth-child(4) .step-num { background: var(--sky); color: #fff; }
.step-num::after { content: "."; color: var(--sky); }
.step:nth-child(4) .step-num::after { color: var(--midnight); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .98rem; }

/* included */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 32px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.feature-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--sky-soft); color: var(--midnight); display: grid; place-items: center; margin-bottom: 22px; }
.feature:nth-child(3n+2) .feature-icon { background: var(--blush-soft); }
.feature:nth-child(3n) .feature-icon { background: var(--stone-soft); }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .98rem; }

/* compare */
.why { background: var(--paper); }
.compare { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-row > div { padding: 20px 28px; display: flex; gap: 12px; align-items: flex-start; }
.compare-row > div:first-child { color: var(--muted); }
.compare-row > div:last-child { background: var(--sky-soft); font-weight: 600; }
.compare-head > div { font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding-top: 22px; padding-bottom: 22px; }
.compare-head > div:last-child { background: var(--midnight); color: #fff; }
.compare svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.compare .no { color: var(--stone); }
.compare .yes { color: var(--sky-ink); }

/* offer */
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.offer-text > p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }
.checklist { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 15px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist svg { width: 26px; height: 26px; flex: none; color: var(--midnight); background: var(--blush); border-radius: 50%; padding: 5px; margin-top: 0; }
.offer-keep { margin-top: 28px; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); font-weight: 600; }
.offer-price { margin-top: 14px; color: var(--muted); font-size: .96rem; }

.form-card { position: relative; background: #fff; border-radius: 24px; padding: clamp(28px, 4vw, 42px); box-shadow: var(--shadow); overflow: hidden; }
.form-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--brand-gradient); }
.form-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.form-card .form-intro { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-size: .88rem; font-weight: 650; }
.optional { font-weight: 450; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 1rem;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sand);
  color: var(--midnight);
  transition: border-color .2s, background .2s;
}
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); background: #fff; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #b4574a; }
.field-error { display: none; font-size: .82rem; color: #9b3f33; font-weight: 600; }
.field.invalid .field-error { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; font-weight: 450; color: var(--muted); margin: 6px 0 22px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--midnight); }
.consent.invalid { color: #9b3f33; }
.form-card .btn { width: 100%; }
.form-next { margin-top: 14px; font-size: .85rem; color: var(--muted); text-align: center; }

/* faq */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 24px; }
.faq-list details[open] { background: #fff; }
.faq-list summary {
  cursor: pointer; list-style: none;
  padding: 20px 0; font-weight: 650; font-size: 1.03rem;
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 500; font-size: 1.2rem;
  background: var(--midnight); color: #fff; transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--sky); }
.faq-list details p { padding-bottom: 22px; color: var(--muted); }

/* final cta: full photo, like "Scandinavian approach. Real results." */
.final { position: relative; color: #fff; background: var(--midnight); overflow: hidden; }
.final-media { position: absolute; inset: 0; }
.final-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.final-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26, 29, 38, .88) 0%, rgba(26, 29, 38, .6) 45%, rgba(26, 29, 38, .15) 100%); }
.final-inner { position: relative; z-index: 1; padding: clamp(96px, 13vw, 168px) 0; max-width: 640px; }
.final .label { color: rgba(245, 242, 236, .8); }
.final p { margin-top: 20px; color: rgba(245, 242, 236, .82); font-size: 1.1rem; }

/* the Liberatori group: text on the left, the group's numbers on the right */
.group { background: var(--paper); border-top: 1px solid var(--line); }
.group-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.group-text p { margin: 18px 0 28px; color: var(--muted); font-size: 1.06rem; }
.group-stats { display: grid; gap: 14px; }
.group-stat { display: flex; align-items: center; gap: 22px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.group-num { flex: none; min-width: 2.9em; font-size: 2rem; font-weight: 750; letter-spacing: -0.03em; color: var(--midnight); }
.group-stat span:last-child { color: var(--muted); }
.group-source { font-size: .8rem; color: var(--muted); }

/* footer: Midnight with the gradient bar */
.site-footer { background: var(--midnight); color: rgba(245, 242, 236, .72); font-size: .92rem; }
.site-footer::before { content: ""; display: block; height: 4px; background: var(--brand-gradient); }
.footer-inner { padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-tagline { margin-top: 14px; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-weight: 550; color: #fff; opacity: .85; }
.footer-links a:hover { opacity: 1; }
.footer-side { display: grid; justify-items: end; gap: 22px; }
.footer-group { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; text-decoration: none; color: rgba(245, 242, 236, .72); font-size: .82rem; transition: border-color .2s, color .2s; }
.footer-group span { font-weight: 750; color: #fff; letter-spacing: -0.01em; font-size: .98rem; }
.footer-group:hover { border-color: var(--sky); color: #fff; }
.footer-legal { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .83rem; line-height: 1.6; }

/* pages without the dark hero: light header before the script runs */
body:not(:has(.hero)) .site-header.on-dark { background: rgba(245, 242, 236, .92); border-bottom-color: var(--line); color: var(--midnight); }
body:not(:has(.hero)) .site-header.on-dark .logo-modo { color: var(--midnight); }
body:not(:has(.hero)) .site-header.on-dark .lang a[aria-current="page"] { background: var(--midnight); color: #fff; }

/* blog pages (Blog Studio puts the list or the article in main.bs between our header and footer) */
main.bs { padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem)); }
main.bs .bs-card { background: var(--paper); }

/* legal pages */
.legal { padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(56px, 8vw, 96px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal p, .legal li { color: #3e424d; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal .updated { color: var(--muted); font-size: .92rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* responsive */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .offer-grid, .faq-grid, .problem-grid { grid-template-columns: 1fr; gap: 48px; }
  .problem-aside { position: static; }
  .group-grid { grid-template-columns: 1fr; }
  .problem-aside .photo { aspect-ratio: 16 / 9; }
  .hero-media { inset: 0 0 0 20%; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .benefits ul { grid-template-columns: repeat(2, 1fr); }
  .benefits li:nth-child(3) { border-left: 0; }
  .benefits li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .header-inner { gap: 12px; }
  .logo { font-size: 1.3rem; }
  .site-header.solid .header-cta { display: none; }
  .hero-inner { min-height: 0; padding: calc(var(--header-h) + 36px) 0 40px; }
  .hero { display: flex; flex-direction: column; }
  .hero-media { position: relative; inset: auto; height: 300px; order: 2; }
  .hero-media::after { background: linear-gradient(180deg, var(--midnight) 0%, rgba(26, 29, 38, 0) 40%); }
  .hero-cta .btn { width: 100%; }
  .steps, .features, .field-row { grid-template-columns: 1fr; }
  .compare-row > div { padding: 16px; font-size: .94rem; }
  .compare-head > div { font-size: .68rem; letter-spacing: .14em; }
  .problem-card, .feature, .step { padding: 26px; }
  .benefits li { padding: 26px 8px; font-size: .92rem; }
  .footer-side { justify-items: start; }
  .group-stat { gap: 14px; padding: 16px 18px; }
  .group-num { font-size: 1.6rem; min-width: 2.5em; }
}

/* ---- calculator: left edge arrow and the panel it slides in (like the cells of the Liberatori presentation) ---- */
body { overflow-x: clip; }
/* desktop: a corridor on each side so the edge arrow never sits on the text */
@media (min-width: 861px) { .wrap { width: min(var(--wrap), 100% - 184px); } }
.kx-edge {
  position: fixed; z-index: 45; top: 50%; left: 18px; transform: translateY(-50%);
  display: inline-flex; align-items: center; height: 56px; padding: 0 16px; border-radius: 999px;
  background: var(--midnight); color: #fff; border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 10px 30px rgba(26, 29, 38, .25); font: inherit; font-weight: 650; font-size: .92rem; cursor: pointer;
  transition: opacity .3s, background .2s;
}
.kx-edge svg { width: 22px; height: 22px; flex: none; }
.kx-edge-label { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .3s ease, opacity .2s, margin .3s; }
.kx-edge:hover .kx-edge-label, .kx-edge:focus-visible .kx-edge-label { max-width: 180px; opacity: 1; margin: 0 4px 0 8px; }
.kx-edge:hover { background: var(--midnight-2); }
.kx-back { position: absolute; left: auto; right: 18px; }
.kx-back:hover .kx-edge-label, .kx-back:focus-visible .kx-edge-label { margin: 0 8px 0 4px; }
/* the opener: a Blush tab on the left edge, arrow on top and the word read bottom to top */
.kx-open {
  position: fixed; z-index: 45; left: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 14px 10px 18px 8px; border: 0; border-radius: 0 16px 16px 0;
  background: var(--blush); color: var(--midnight); font: inherit; cursor: pointer;
  box-shadow: 0 10px 30px rgba(26, 29, 38, .22); transition: padding .25s, opacity .3s, background .2s;
}
.kx-open:hover, .kx-open:focus-visible { padding-left: 14px; background: #f5d5c7; }
.kx-open-arrow { width: 34px; height: 34px; border-radius: 50%; background: var(--midnight); color: #fff; display: grid; place-items: center; }
.kx-open-arrow svg { width: 18px; height: 18px; }
.kx-open-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
html.kx-on .kx-open { opacity: 0; pointer-events: none; }
.kx-link { font-weight: 650; color: var(--midnight); text-underline-offset: 4px; white-space: nowrap; }

.kx {
  position: fixed; inset: 0; z-index: 60; background: var(--sand);
  transform: translateX(-100%); visibility: hidden;
  transition: transform .6s cubic-bezier(.65, 0, .35, 1), visibility 0s linear .6s;
}
html.kx-on .kx { transform: none; visibility: visible; transition: transform .6s cubic-bezier(.65, 0, .35, 1), visibility 0s; }
/* the page moves the other way, so it reads as going to the cell on the left */
main, .site-footer { transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.site-header { transition: background .25s, border-color .25s, box-shadow .25s, transform .6s cubic-bezier(.65, 0, .35, 1); }
html.kx-on .site-header, html.kx-on main, html.kx-on .site-footer { transform: translateX(100vw); }
html.kx-on, html.kx-on body { overflow: hidden; }
.kx-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.kx-wrap { width: min(1320px, 100% - 200px); padding: 40px 0 72px; }
.kx-head { max-width: 700px; margin-bottom: 34px; }
.kx-head .logo { margin-bottom: 30px; }
.kx-head .label { display: block; margin-bottom: 14px; }
.kx-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.kx-head p { margin-top: 12px; color: var(--muted); font-size: 1.06rem; }

.kx-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.kx-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.kx-card > .label { margin-bottom: 16px; }
.kx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.kx-chip { font: inherit; font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--midnight); cursor: pointer; }
.kx-chip.on { background: var(--midnight); border-color: var(--midnight); color: #fff; }
.kx-big { font-size: 2.1rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
.kx-unit { color: var(--muted); font-weight: 550; }
.kx-note { margin-top: 14px; font-size: .82rem; color: var(--muted); }

.kx-field { display: grid; gap: 10px; }
.kx-field label { font-weight: 650; font-size: .95rem; }
.kx-field-main { margin-bottom: 22px; }
.kx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.kx-input { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--sand); padding: 0 16px; transition: border-color .2s, background .2s; }
.kx-input:focus-within { border-color: var(--sky); background: #fff; }
.kx-input input { border: 0; background: transparent; padding: 12px 0; font-size: 1.5rem; font-weight: 700; text-align: right; min-width: 0; -moz-appearance: textfield; }
.kx-input input:focus { outline: none; background: transparent; }
.kx-input input::-webkit-outer-spin-button, .kx-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kx-input span { color: var(--muted); font-weight: 600; }
.kx-field-main .kx-input input { font-size: 2rem; padding: 14px 0; }
.kx input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; padding: 0; border: 0; cursor: pointer; }
.kx input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--stone-soft); }
.kx input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--stone-soft); }
.kx input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; border: 2px solid var(--midnight); box-shadow: 0 2px 6px rgba(26, 29, 38, .2); }
.kx input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--midnight); }
.kx-invite { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; text-align: center; }

#kx-packages { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.kx-pk-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.kx-pk-head .label { margin: 0; }
.kx-pk-head .label::after { display: none; }
.kx-pk-head p { font-size: .85rem; color: var(--muted); }
.kx-pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kx-pkg { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 14px 18px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; overflow: hidden; }
.kx-pkg::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand-gradient); opacity: 0; transition: opacity .2s; }
.kx-pkg:hover { border-color: var(--stone); }
.kx-pkg.selected { border-color: var(--midnight); box-shadow: 0 10px 26px rgba(26, 29, 38, .1); }
.kx-pkg.selected::before { opacity: 1; }
.kx-pkg-name { font-weight: 700; }
.kx-fee { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.02em; }
.kx-per { font-size: .78rem; color: var(--muted); margin-top: -2px; }
.kx-plus { font-size: .86rem; color: var(--muted); }
.kx-plus s { display: block; color: var(--sky-ink); font-weight: 650; text-decoration-thickness: 1.5px; }
.kx-inc { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); align-self: stretch; font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.kx-pkg ul { list-style: none; padding: 0; margin: 6px 0 0; font-size: .88rem; display: grid; gap: 4px; }
.kx-programme { margin-top: 18px; }
.kx-programme .kx-inc { border: 0; padding: 0; margin: 0 0 8px; }
.kx-programme ul { margin: 0; padding-left: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; font-size: .86rem; color: var(--muted); }

.kx-proposal { position: sticky; top: 24px; background: var(--midnight); border-color: var(--midnight); color: #fff; }
.kx-proposal > .label { color: rgba(245, 242, 236, .75); }
.kx-empty { color: rgba(245, 242, 236, .7); }
.kx-k { margin-top: 14px; color: rgba(245, 242, 236, .7); font-size: .9rem; }
.kx-k:first-child { margin-top: 0; }
.kx-v { font-size: 1.7rem; font-weight: 750; letter-spacing: -0.02em; }
.kx-v-big { font-size: 2.2rem; color: var(--sky); }
.kx-closed { font-size: .88rem; color: var(--blush); }
.kx-with { margin-bottom: 16px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .07); font-size: .85rem; color: rgba(245, 242, 236, .75); }
.kx-with b { color: #fff; }
.kx-cost { margin-top: 16px; padding-top: 2px; border-top: 1px solid rgba(255, 255, 255, .12); }
.kx-v-small { font-size: 1.3rem; }
.kx-calls { margin-top: 2px; font-size: .74rem; color: var(--muted); }
.kx-ctas { display: grid; gap: 10px; margin-top: 24px; }
.kx-ctas .btn { width: 100%; padding: 13px 18px; font-size: .95rem; }
.kx-disclaimer { margin-top: 16px; font-size: .78rem; color: rgba(245, 242, 236, .55); }

@media (max-width: 1100px) {
  .kx-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .kx-market { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 20px; }
  .kx-market > .label, .kx-market .kx-chips { margin: 0; }
  .kx-market .kx-note { grid-column: 1 / -1; margin: 0; }
}
@media (max-width: 860px) {
  .kx-wrap { width: min(var(--wrap), 100% - 40px); padding: 72px 0 96px; }
  .kx-grid { grid-template-columns: 1fr; }
  .kx-market { display: block; }
  .kx-market > .label { margin-bottom: 16px; }
  .kx-market .kx-chips { margin-bottom: 18px; }
  .kx-market .kx-note { margin-top: 14px; }
  .kx-proposal { position: static; }
  /* phone: the opener is a pill at the bottom left, the way back sits at the top right */
  .kx-open { top: auto; bottom: 16px; left: 16px; transform: none; flex-direction: row; gap: 10px; padding: 7px 18px 7px 7px; border-radius: 999px; }
  .kx-open:hover, .kx-open:focus-visible { padding-left: 7px; }
  .kx-open-label { writing-mode: horizontal-tb; transform: none; letter-spacing: .12em; }
  .kx-back { top: 12px; right: 12px; transform: none; height: 44px; padding: 0 12px; }
}
@media (max-width: 640px) {
  .kx-pkgs, .kx-two, .kx-programme ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .kx, html.kx-on .kx, .site-header, main, .site-footer { transition: none; }
}

/* offer section: a call with Matteo instead of the form (13/10/2026) */
.book-card .book-points { margin: 4px 0 26px; }
.book-card .book-points li { font-size: .98rem; }
