/* ==========================================================================
   Ven Innovations Hub — site styles
   System fonts only: no third-party requests (GDPR friendly) and a native,
   Apple-like feel on Apple devices.
   ========================================================================== */

:root {
  /* Sage clinic palette (matches the LinkedIn cover and profile photo) */
  --paper: #EEF3EF;
  --paper-2: #E2EBE5;
  --paper-3: #D5E4DA;
  --ink: #13302A;       /* evergreen */
  --ink-2: #1D3D35;
  --muted: #4D6A5D;     /* ≥ 5:1 on paper and cards (WCAG AA) */
  --faint: #93A89C;
  --line: rgba(19, 48, 42, .12);
  --terra: #C0714F;     /* clay: the one warm accent (cursor, highlights) */
  --terra-text: #9A5235; /* deeper clay for small text on light backgrounds (5:1) */
  --terra-soft: #EBCBBB;
  --olive: #3F6E5C;     /* deep sage green */
  --olive-soft: #8BB19B; /* sage, the profile photo background */

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 82.5rem;
  --radius: 1.75rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

/* Everything is sized in rem, so on big screens text and spacing scale up together. */
html {
  font-size: clamp(100%, calc(0.5rem + 0.5vw), 118.75%);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: #CFE0D5; color: var(--ink); }
/* Big, tightly set headings: highlight by colour only, so selection boxes never cover the letters */
h1::selection, h1 ::selection, h2::selection, h2 ::selection, .statement::selection, .statement ::selection,
.product-name::selection, .product-name ::selection, .giant ::selection { background: transparent; color: var(--terra); }

/* Language switching: markup carries both languages, CSS shows one. */
html[lang="ro"] [data-lang="en"],
html[lang="en"] [data-lang="ro"] { display: none !important; }

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

.skip {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.625rem 1rem; border-radius: 999px;
  transform: translateY(-200%); transition: transform .2s;
  text-decoration: none; font-size: 0.875rem;
}
.skip:focus { transform: none; }

:focus-visible { outline: 2px solid var(--terra); outline-offset: 0.1875rem; border-radius: 0.25rem; }

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

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
h2.section-label { margin: 0; font-weight: 400; text-align: center; }

/* Unfilled config values stay visible until replaced */
.ph {
  background: rgba(192, 113, 79, .12);
  outline: 1px dashed rgba(192, 113, 79, .55);
  outline-offset: 1px;
  border-radius: 0.1875rem;
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(238, 243, 239, .78);
  -webkit-backdrop-filter: saturate(180%) blur(1.125rem);
  backdrop-filter: saturate(180%) blur(1.125rem);
  border-bottom-color: var(--line);
}
.topbar .wrap {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}
.wordmark {
  text-decoration: none;
  display: inline-flex; align-items: center;
  white-space: nowrap;
  justify-self: start;
}
.logo { display: block; height: 1.0625rem; width: auto; overflow: visible; }
.logo-cursor { fill: var(--terra); animation: blink 1.1s steps(1) infinite; }
.wordmark .sub { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-left: 0.875rem; letter-spacing: .04em; text-transform: uppercase; }
@keyframes blink { 50% { opacity: 0; } }

.clock { font-size: 0.7812rem; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; visibility: hidden; } /* shown by main.js once the time is filled in */
.clock.ready { visibility: visible; }
.clock .city { color: var(--muted); margin-right: 0.375rem; }

.lang { display: flex; gap: 0.875rem; font-size: 0.7812rem; letter-spacing: .04em; }
.lang button, .lang a {
  background: none; border: 0; padding: 0.25rem 0; cursor: pointer; text-decoration: none;
  color: var(--muted); text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.lang button:hover, .lang a:hover { color: var(--ink); }
.lang button[aria-pressed="true"], .lang a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.cta-top {
  justify-self: end;
  font-size: 0.7812rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.cta-top::after {
  content: ""; width: 0.4375rem; height: 0.4375rem; background: var(--ink);
  transition: transform .3s var(--ease), background .3s;
}
.cta-top:hover::after { transform: rotate(45deg); background: var(--terra); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: 4rem;
  position: relative;
}
.hero-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 8vh var(--gutter) 6vh;
}
.hero .eyebrow { margin-bottom: 1.75rem; }
.hero h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.625rem, min(7.4vw, 11.8vh), 7.5rem);
  line-height: .96;
  letter-spacing: -.045em;
  max-width: 11ch;
}
.hero h1 .accent { color: var(--terra); animation: earth 10s infinite; }
/* A different colour every second, with a short fade between each. */
@keyframes earth {
  0.0%, 7.5%      { color: #C0714F; } /* clay */
  10.0%, 17.5%    { color: #3F6E5C; } /* sage green */
  20.0%, 27.5%    { color: #13302A; } /* evergreen */
  30.0%, 37.5%    { color: #2F6F73; } /* teal */
  40.0%, 47.5%    { color: #9A5235; } /* deep clay */
  50.0%, 57.5%    { color: #4E7B69; } /* eucalyptus */
  60.0%, 67.5%    { color: #1F4E5F; } /* petrol */
  70.0%, 77.5%    { color: #A0633F; } /* iodine */
  80.0%, 87.5%    { color: #2E5D55; } /* surgical green */
  90.0%, 97.5%    { color: #4A6378; } /* slate */
  100%            { color: #C0714F; }
}


.hero .sub {
  margin: clamp(1.25rem, 4vh, 2rem) auto 0;
  max-width: 34em;
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  color: var(--muted);
  line-height: 1.45;
}
.hero .actions { display: flex; flex-direction: column; align-items: center; gap: clamp(1rem, 2.6vh, 1.5rem); margin-top: clamp(1.5rem, 5vh, 2.5rem); }
.btn-lg { padding: 1.0625rem 2rem; font-size: 1.0625rem; gap: 0.75rem; }
/* Quiet text link under the main button: underlined in clay, the arrow points down to the solutions */
.scroll-link {
  position: relative; display: inline-flex; align-items: center;
  color: var(--ink); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
}
.scroll-link > span:not(.arrow) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .32em; text-decoration-color: var(--terra-text); transition: text-decoration-color .25s, color .25s; }
/* The arrow hangs off the right edge, so the underlined words centre exactly under the button */
.scroll-link .arrow { position: absolute; left: 100%; margin-left: 0.5rem; color: var(--terra-text); animation: nudge 2.4s var(--ease) infinite; }
.scroll-link:hover > span:not(.arrow) { color: var(--terra-text); }
.scroll-link:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; border-radius: 4px; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(0.25rem); } }
/* Short laptop screens: pull the hero up so the button and link sit clear of the floating menu */
@media (max-height: 760px) and (min-width: 721px) {
  .hero-inner { padding-top: 4vh; }
  .hero .eyebrow { margin-bottom: 1.125rem; }
  .hero h1 { font-size: clamp(2.625rem, min(7.4vw, 10.4vh), 7.5rem); }
}

.btn {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--terra); border-color: var(--terra); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(0.1875rem); }

/* Tile strip */
.strip {
  overflow: hidden;
  padding: 0 0 5.75rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.strip-track {
  display: flex; gap: 0.375rem; width: max-content;
  animation: marquee 80s linear infinite; /* scaled with tile count (40) to keep the same speed */
}
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tile {
  width: 4.125rem; height: 4.125rem; flex: none;
  border-radius: 0.375rem;
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease);
}
.tile:hover { transform: translateY(-0.375rem) scale(1.06); }
.tile i { position: absolute; display: block; }
.tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
section { position: relative; }
.section { padding: clamp(6rem, 16vh, 11.25rem) 0; }
.section-head { text-align: center; margin-bottom: clamp(3rem, 8vh, 5.5rem); }
.section-head h2 {
  margin: 0.875rem 0 0;
  font-weight: 500;
  font-size: clamp(2.25rem, min(5.1vw, 8.2vh), 4.75rem);
  letter-spacing: -.04em;
  line-height: 1;
}

/* About */
.statement {
  margin: 1.75rem auto 0;
  max-width: 21em;
  text-align: center;
  font-weight: 500;
  font-size: clamp(1.75rem, min(4vw, 6.4vh), 3.75rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}
.statement u { text-decoration-thickness: .06em; text-underline-offset: .12em; }
.scrub .w { transition: color .35s linear; color: var(--paper-3); }
.scrub .w.on { color: var(--ink); }
.scrub u .w { text-decoration: inherit; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(5rem, 14vh, 10rem);
  align-items: start;
}
.team .about-grid { margin-top: 0; }
.founder {
  position: sticky; top: 6.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.5rem;
}
.founder .photo {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 80% 10%, var(--terra-soft), transparent 60%),
    radial-gradient(90% 70% at 10% 100%, var(--olive-soft), transparent 60%),
    var(--paper-2);
}
.founder .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.founder .photo picture { display: block; width: 100%; height: 100%; }
/* Real portrait: drop the placeholder gradient, add a soft evergreen scrim so the caption stays legible */
.founder .photo.has-img { background: #8BB19B; }
.founder .photo.has-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(19,48,42,0) 55%, rgba(19,48,42,.28) 72%, rgba(19,48,42,.78) 100%);
}
.founder:has(.has-img) .cap { color: var(--paper); z-index: 1; }
.founder:has(.has-img) .role { color: rgba(238,243,239,.82); margin-top: 2px; }
.founder .cap-mark { width: 2.125rem; height: auto; flex: none; color: var(--paper); margin-bottom: 0.25rem; }
.founder .cap-mark .logo-cursor { fill: #D08766; }
.founder:has(.has-img) .tag { z-index: 1; }
.founder .mono-mark {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--mono); font-size: clamp(3.5rem, min(7.4vw, 11.8vh), 6.5rem); color: rgba(19,48,42,.1);
  letter-spacing: -.06em;
}
.founder .cap { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 0.75rem; }
.founder .name { font-size: 1.375rem; font-weight: 500; letter-spacing: -.02em; }
.founder .role { font-size: 0.8125rem; color: var(--muted); }
.founder .tag {
  position: relative; align-self: flex-start;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(238,243,239,.75); padding: 0.375rem 0.625rem; border-radius: 999px;
  -webkit-backdrop-filter: blur(0.5rem); backdrop-filter: blur(0.5rem);
}

.about-copy p {
  font-size: clamp(1.125rem, 1.55vw, 1.375rem);
  line-height: 1.4;
  letter-spacing: -.012em;
  margin: 0 0 1.1em;
}
.about-copy p.small { font-size: 1.0625rem; color: var(--muted); letter-spacing: 0; }
.facts {
  list-style: none; padding: 0; margin: 3rem 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.facts li { padding: 1.25rem 1rem 0 0; }
.facts .k { display: block; margin-bottom: 0.5rem; }
.facts .v { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; }

/* Services: the Clinics / Businesses switch that picks which solutions show below */
.services { background: var(--paper); padding-bottom: clamp(3.5rem, 9vh, 6rem); }
.services .section-head { margin-bottom: clamp(1.75rem, 4vh, 2.75rem); }
.aud-switch { display: flex; flex-direction: column; align-items: center; gap: 0.875rem; text-align: center; }
.aud-q { margin: 0; color: var(--muted); }
.cat-tabs.aud-tabs { margin-top: 0; padding: 0.375rem; }
.cat-tabs.aud-tabs [role="tab"] { font-size: clamp(1rem, 1.15vw, 1.125rem); padding: 0.9375rem clamp(1.5rem, 2.6vw, 2.25rem); }
.aud-tabs [role="tab"] svg { width: 1.375rem; height: 1.375rem; flex: none; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.aud-tabs [role="tab"]:hover svg { transform: rotate(-8deg) scale(1.12); }
.aud-tabs [role="tab"][aria-selected="true"] svg { color: var(--terra-soft); }
.aud-tabs [role="tab"]:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.aud-panel:not([hidden]) { animation: panelIn .6s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

/* Products */
.products {
  background: var(--ink);
  color: var(--paper);
  border-radius: 2.5rem 2.5rem 0 0;
  overflow: hidden;
}
.products .label { color: var(--faint); }
.products .section-head h2 { color: var(--paper); }
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}
.product-name {
  font-size: clamp(3.75rem, min(10.4vw, 16.6vh), 10rem);
  font-weight: 600; letter-spacing: -.06em; line-height: .86;
  margin: 0;
}
.product-name.long { font-size: clamp(2.875rem, min(5.6vw, 9vh), 5.375rem); line-height: .92; letter-spacing: -.05em; }
.product-tag { font-size: clamp(1.25rem, 2.05vw, 1.75rem); color: var(--terra-soft); letter-spacing: -.02em; margin: 1.125rem 0 1.75rem; }
.product-copy { color: #A9C3B4; font-size: 1.0625rem; max-width: 30em; }
.product-example { color: #A9C3B4; font-size: 0.9375rem; max-width: 30em; margin: 1rem 0 0; padding-left: 0.875rem; border-left: 2px solid #D08766; }
.product-example b { display: block; font-family: var(--mono); font-size: 0.6875rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: #D08766; margin-bottom: 0.25rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.625rem;
  border: 1px solid rgba(238,243,239,.22);
  border-radius: 999px; padding: 0.5rem 0.875rem;
  font-size: 0.8438rem; margin-top: 1.75rem;
}
.pill .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--olive-soft); box-shadow: 0 0 0 0 rgba(139,177,155,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 0.625rem rgba(139,177,155,0); } 100% { box-shadow: 0 0 0 0 rgba(139,177,155,0); } }
.stores { display: flex; gap: 0.625rem; margin-top: 1.125rem; flex-wrap: wrap; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  padding: 0.5625rem 1.125rem; border-radius: 0.75rem;
  background: rgba(238,243,239,.06); border: 1px solid rgba(238,243,239,.12);
  color: var(--faint); font-size: 0.6875rem; line-height: 1.2; min-width: 9.375rem;
}
.store b { color: var(--paper); font-size: 1rem; font-weight: 500; }

/* Solutions: alternating rows, each with a CSS mock-up */
.product + .product { margin-top: clamp(6rem, 16vh, 12.5rem); }
@media (min-width: 901px) { .product.flip > .rise { order: 2; } }
.stage-card { min-height: 35rem; }
@media (max-width: 900px) { .stage.stage-card { min-height: 0; padding: 3rem 0 0.5rem; } }
.mock {
  position: relative; width: min(23.125rem, 100%);
  background: #F7FAF8; color: var(--ink); border-radius: 1.625rem;
  padding: 1.375rem; font-size: 0.8125rem; line-height: 1.4; text-align: left;
  box-shadow: 0 0 0 1px rgba(238,243,239,.12), 0 2.5rem 5rem rgba(0,0,0,.45);
}
.mock h4, .mock .doc-h { margin: 0 0 0.1875rem; font-family: var(--mono); font-size: 0.6562rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mock p { margin: 0; }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-bottom: 0.875rem; border-bottom: 1px solid var(--line); }
.rec { display: inline-flex; align-items: center; gap: 0.4375rem; font-size: 0.7188rem; background: #E2EBE5; padding: 0.3125rem 0.625rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.rec i { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--terra); animation: blink 1.1s steps(1) infinite; }
.wave { display: inline-flex; align-items: center; gap: 0.1875rem; height: 1.375rem; }
.wave b { width: 0.1875rem; border-radius: 2px; background: var(--olive-soft); height: 40%; animation: wave 1.2s ease-in-out infinite; }
.wave b:nth-child(3n) { animation-delay: -.4s; } .wave b:nth-child(3n+1) { animation-delay: -.8s; } .wave b:nth-child(4n) { height: 70%; }
@keyframes wave { 50% { height: 100%; } }
.doc-title { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; margin: 1rem 0 0.75rem; }
.doc-title em { font-style: normal; font-family: var(--mono); font-size: 0.6562rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--terra-text); background: rgba(192,113,79,.1); padding: 0.1875rem 0.4375rem; border-radius: 999px; margin-left: 0.375rem; vertical-align: 0.1875rem; }
.doc-sec { padding: 0.5625rem 0; border-bottom: 1px dashed var(--line); }
.doc-sec ul { margin: 2px 0 0; padding-left: 1rem; }
.doc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.doc-foot .sign { background: var(--ink); color: var(--paper); padding: 0.5625rem 0.875rem; border-radius: 999px; font-size: 0.7812rem; }
.doc-foot small { color: var(--muted); font-size: 0.7188rem; }
.dash-top { display: flex; justify-content: space-between; align-items: baseline; }
.dash-top b { font-size: 1rem; letter-spacing: -.02em; }
.dash-top small { font-family: var(--mono); font-size: 0.625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0.875rem 0; }
.kpis div { background: #E2EBE5; border-radius: 0.875rem; padding: 0.625rem; display: grid; gap: 1px; }
.kpis small { font-size: 0.6875rem; color: var(--muted); }
.kpis b { font-size: 1.375rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpis em { font-style: normal; font-size: 0.6875rem; color: var(--muted); }
.kpis em.up { color: var(--olive); }
.bars { display: flex; align-items: flex-end; gap: 0.625rem; height: 6.875rem; padding: 0 0.25rem; }
.bars span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 0.375rem; }
.bars i { display: block; width: 100%; height: var(--h); border-radius: 0.375rem 0.375rem 0.1875rem 0.1875rem; background: var(--olive-soft); }
.bars .low i { background: var(--terra); }
.bars small { font-size: 0.6562rem; color: var(--muted); }
.bars span { height: calc(100% + 0px); }
.insight { margin-top: 0.875rem; background: var(--ink); color: var(--paper); border-radius: 1rem; padding: 0.75rem 0.875rem; display: grid; gap: 0.625rem; }
.insight p { font-size: 0.7812rem; color: rgba(238,243,239,.88); }
.insight .go { justify-self: start; background: var(--terra-text); color: #FFFFFF; font-size: 0.75rem; padding: 0.375rem 0.75rem; border-radius: 999px; }
.solutions-cta { margin-top: clamp(6rem, 14vh, 10rem); display: flex; flex-direction: column; align-items: center; gap: 1.125rem; text-align: center; }
.solutions-cta p { margin: 0; font-size: clamp(1.375rem, 2.1vw, 1.875rem); letter-spacing: -.03em; color: var(--paper); }

/* CSS phone mock-up: an illustrative clinic assistant conversation */
.stage { position: relative; display: grid; place-items: center; min-height: 40rem; }
.halo {
  position: absolute; width: 32.5rem; height: 32.5rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(192,113,79,.55), rgba(63,110,92,.25) 45%, transparent 70%);
  filter: blur(1.875rem);
}
.phone {
  position: relative;
  width: 18.75rem; height: 38.75rem;
  border-radius: 3.25rem;
  background: #050505;
  padding: 0.75rem;
  box-shadow: 0 0 0 1.5px #3a3936, 0 2.5rem 5rem rgba(0,0,0,.5);
  will-change: transform;
}
.screen {
  height: 100%; border-radius: 2.5625rem; overflow: hidden;
  background: #F7FAF8; color: var(--ink);
  padding: 3.375rem 1.125rem 1.125rem;
  position: relative;
  font-size: 0.8125rem;
}
.island { position: absolute; top: 0.75rem; left: 50%; transform: translateX(-50%); width: 6rem; height: 1.75rem; border-radius: 1.25rem; background: #050505; }
.app-top { display: flex; justify-content: space-between; align-items: center; }
.app-logo { font-weight: 700; font-size: 1.375rem; letter-spacing: -.04em; }
.app-logo span { color: var(--terra-text); }
.app-avatar { width: 1.875rem; height: 1.875rem; border-radius: 50%; background: var(--olive-soft); }
.app-h { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin: 1.25rem 0 0.875rem; }
.app-status { display: flex; align-items: center; gap: 0.375rem; font-size: 0.7188rem; color: var(--muted); margin: 0.25rem 0 0; }
.app-status i { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: #3F9B6E; }
.thread { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.125rem; font-size: 0.8125rem; line-height: 1.38; text-align: left; }
.screen { text-align: left; }
.thread .msg { max-width: 86%; padding: 0.5625rem 0.75rem; border-radius: 1rem; }
.thread .msg.in { align-self: flex-start; background: #FFFFFF; border-bottom-left-radius: 0.3125rem; box-shadow: 0 1px 0 rgba(19,48,42,.05); }
.thread .msg.out { align-self: flex-end; background: #D5E4DA; border-bottom-right-radius: 0.3125rem; }
.app-bar {
  position: absolute; left: 1.125rem; right: 1.125rem; bottom: 1.125rem;
  background: var(--ink); color: #fff; border-radius: 1.125rem;
  padding: 0.875rem 1rem; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8125rem;
}

/* Business mock-up: quote */
.quote-from { display: inline-flex; align-items: center; gap: 0.4375rem; font-size: 0.7188rem; background: #E2EBE5; padding: 0.3125rem 0.625rem; border-radius: 999px; }
.quote-from i { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--olive); }
.quote-time { color: var(--muted); font-size: 0.6875rem; font-family: var(--mono); white-space: nowrap; }
.quote-from { white-space: nowrap; }
@media (max-width: 420px) { .quote-time { display: none; } }
.q-lines { list-style: none; margin: 0; padding: 0; }
.q-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5625rem 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.q-lines small { color: var(--muted); margin-left: 0.25rem; }
.q-lines b { font-weight: 500; white-space: nowrap; }
.q-lines .minus b { color: var(--olive); }
.q-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 0.875rem; }
.q-total small { display: block; color: var(--muted); font-size: 0.6875rem; }
.q-total b { font-size: 1.375rem; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Process */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0 clamp(1.25rem, 3vw, 2.5rem);
  position: relative;
}
.steps::before, .steps::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0.4375rem; height: 1px; background: var(--line);
}
.steps::after { background: var(--terra); right: auto; width: var(--p, 0%); transition: width .2s linear; height: 2px; top: 0.4062rem; }
.step { position: relative; padding-top: 2.75rem; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; width: 0.9375rem; height: 0.9375rem;
  background: var(--paper); border: 1.5px solid var(--ink);
  transition: background .4s, border-color .4s;
}
.step.lit::before { background: var(--terra); border-color: var(--terra); }
.step .num { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.step h3 { font-size: clamp(1.375rem, 1.95vw, 1.75rem); font-weight: 500; letter-spacing: -.03em; margin: 0.5rem 0 0.75rem; line-height: 1.05; }
.step p { margin: 0; color: var(--muted); }

/* Contact */
.contact { background: var(--paper-2); border-radius: 2.5rem; margin: 0 clamp(0.5rem, 1.2vw, 1rem); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact h2 {
  font-size: clamp(3rem, min(7.2vw, 11.5vh), 7.25rem); font-weight: 500; letter-spacing: -.05em; line-height: .92;
  margin: 1.125rem 0 1.75rem;
}
.contact .lead { font-size: clamp(1.125rem, 1.4vw, 1.3125rem); color: var(--muted); max-width: 22em; margin: 0 0 2.5rem; }
.details { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.details li { display: grid; grid-template-columns: 6.875rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.details a { justify-self: start; text-decoration: none; border-bottom: 1px solid var(--line); }
.details a:hover { border-color: var(--terra-text); color: var(--terra-text); }

.form { display: grid; gap: 0.5rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(19,48,42,.25);
  padding: 1.875rem 0 0.75rem;
  font-size: 1.125rem;
  border-radius: 0;
  outline: none;
  transition: border-color .3s;
  resize: vertical;
}
.field textarea { min-height: 10rem; line-height: 1.4; }
.field label {
  position: absolute; left: 0; top: 1.875rem;
  font-size: 1.125rem; color: var(--muted);
  pointer-events: none;
  transition: transform .3s var(--ease), font-size .3s var(--ease), color .3s;
  transform-origin: left top;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.5rem); font-size: 0.75rem; color: var(--ink);
  font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.hp { position: absolute; left: -624.9375rem; }
.consent { font-size: 0.8438rem; color: var(--muted); margin: 1.125rem 0 0.5rem; max-width: 34em; }
.consent a { color: var(--ink); }
.form-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.75rem; }
.form-status { font-size: 0.875rem; color: var(--olive); }
.form-status.err { color: var(--terra-text); }

/* Footer */
.footer { padding: clamp(6rem, 14vh, 10rem) 0 7.5rem; overflow: hidden; }
.now { font-size: clamp(1.125rem, 1.65vw, 1.375rem); letter-spacing: -.015em; line-height: 1.35; max-width: 26em; margin: 0; }
.now .t { font-variant-numeric: tabular-nums; }
.now a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--terra-text); transition: color .25s; }
.now a:hover { color: var(--terra-text); }
.giant { margin: clamp(3rem, 8vh, 6rem) 0 clamp(2.5rem, 6vh, 4.5rem); }
.giant .logo { width: clamp(10rem, 30vw, 26rem); height: auto; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  font-size: 0.875rem; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 1.75rem;
}
.foot-grid p { margin: 0 0 0.375rem; }
.foot-grid strong { color: var(--ink); font-weight: 500; }
.anpc-sal { display: inline-block; width: 15.625rem; height: 3.125rem; border-radius: 0.375rem; margin-top: 0.875rem; }
.anpc-sal img { width: 15.625rem; height: 3.125rem; }
.foot-links { display: flex; flex-direction: column; gap: 0.375rem; }
.foot-links a, .foot-links button { color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-size: 0.875rem; }
.foot-links a:hover, .foot-links button:hover { color: var(--terra-text); }
.copy { text-align: right; }

/* --------------------------------------------------------------------------
   Floating pill navigation
   -------------------------------------------------------------------------- */
.dock {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 45;
  transform: translateX(-50%);
  display: flex; align-items: center;
  padding: 0.375rem;
  border-radius: 999px;
  background: rgba(19, 48, 42, .74);
  -webkit-backdrop-filter: saturate(170%) blur(1.375rem);
  backdrop-filter: saturate(170%) blur(1.375rem);
  border: 1px solid rgba(238, 243, 239, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1.25rem 2.75rem -0.875rem rgba(19, 48, 42, .5);
  overflow: hidden;
  transition: transform .5s var(--ease), opacity .5s;
}
.dock.hide { transform: translate(-50%, 140%); opacity: 0; }
.dock .links { position: relative; display: flex; gap: 2px; }
.dock a {
  position: relative; z-index: 1;
  color: rgba(238, 243, 239, .88);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.7188rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 0.6875rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .35s var(--ease);
}
.dock a:hover { color: var(--paper); }
.dock a.active { color: var(--ink); }
/* Paper pill that slides under the active section */
.dock .thumb {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0;
  border-radius: 999px;
  background: var(--paper);
  opacity: 0;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
}
.dock .thumb.on { opacity: 1; }
/* Olive reading-progress line along the bottom edge */
.dock-progress {
  position: absolute; left: 0; bottom: 0; height: 2px;
  width: var(--progress, 0%);
  background: var(--olive);
  pointer-events: none;
}
.dock .menu-btn {
  display: none;
  position: relative;
  width: 2.5rem; height: 2.5rem; flex: none;
  border: 0; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  cursor: pointer;
}
.dock .menu-btn .bar {
  position: absolute; left: 0.75rem; width: 1rem; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.dock .menu-btn .bar:nth-child(1) { top: 1rem; }
.dock .menu-btn .bar:nth-child(2) { top: 1.4062rem; }
.dock .menu-btn[aria-expanded="true"] .bar:nth-child(1) { top: 1.2031rem; transform: rotate(45deg); }
.dock .menu-btn[aria-expanded="true"] .bar:nth-child(2) { top: 1.2031rem; transform: rotate(-45deg); }
.dock .current {
  display: none; align-items: center; gap: 0.625rem;
  color: var(--paper);
  font-family: var(--mono); font-size: 0.7188rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 0 1.125rem 0 0.875rem; white-space: nowrap;
}
.dock .cur-dot { width: 0.4375rem; height: 0.4375rem; background: var(--terra); animation: blink 1.1s steps(1) infinite; }

.sheet {
  position: fixed; inset: auto 0.75rem 5rem 0.75rem; z-index: 44;
  background: rgba(19, 48, 42, .9);
  -webkit-backdrop-filter: saturate(170%) blur(1.375rem); backdrop-filter: saturate(170%) blur(1.375rem);
  border: 1px solid rgba(238, 243, 239, .09);
  border-radius: 1.75rem; padding: 0.625rem;
  display: grid; gap: 2px;
  box-shadow: 0 1.875rem 3.75rem -1.25rem rgba(19, 48, 42, .6);
  transform: translateY(1rem) scale(.98); transform-origin: bottom center;
  opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), opacity .35s;
}
.sheet.open { transform: none; opacity: 1; pointer-events: auto; }
.sheet a {
  display: flex; align-items: baseline; gap: 1rem;
  color: rgba(238, 243, 239, .72); text-decoration: none;
  font-size: 1.75rem; font-weight: 500; letter-spacing: -.03em;
  padding: 0.75rem 1rem; border-radius: 1.125rem;
  opacity: 0; transform: translateY(0.625rem);
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .2s, color .2s;
  transition-delay: calc(var(--i) * 45ms);
}
.sheet.open a { opacity: 1; transform: none; }
.sheet a .n { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .08em; color: var(--faint); font-weight: 400; }
.sheet a.active { color: var(--paper); background: rgba(238, 243, 239, .07); }
.sheet a.active .n { color: var(--olive-soft); }
.sheet a:active { background: rgba(238, 243, 239, .1); }

/* --------------------------------------------------------------------------
   Custom square cursor (fine pointers only)
   -------------------------------------------------------------------------- */
.dot-cursor {
  position: fixed; left: 0; top: 0; z-index: 90;
  width: 0.75rem; height: 0.75rem; margin: -0.375rem 0 0 -0.375rem;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  will-change: transform;
  transition: width .2s var(--ease), height .2s var(--ease), margin .2s var(--ease), opacity .2s;
  opacity: 0;
}
.dot-cursor.on { opacity: 1; }
.dot-cursor.big { width: 2.125rem; height: 2.125rem; margin: -1.0625rem 0 0 -1.0625rem; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
  html.has-cursor input, html.has-cursor textarea { cursor: text; }
}

/* --------------------------------------------------------------------------
   Cookie notice / consent
   -------------------------------------------------------------------------- */
.consent-box {
  position: fixed; left: 1.25rem; bottom: 5.25rem; z-index: 60;
  width: min(25rem, calc(100vw - 1.5rem));
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
  padding: 0.875rem 0.875rem 0.875rem 1.125rem;
  color: var(--paper);
  background: rgba(19, 48, 42, .9);
  -webkit-backdrop-filter: saturate(170%) blur(1.375rem);
  backdrop-filter: saturate(170%) blur(1.375rem);
  border: 1px solid rgba(238, 243, 239, .1);
  border-radius: 1.125rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1.25rem 2.75rem -0.875rem rgba(19, 48, 42, .55);
  font-size: 0.8125rem; line-height: 1.5;
  transform: translateY(1rem); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s;
}
.consent-box.show { transform: none; opacity: 1; }
.consent-box p { flex: 1 1 13rem; margin: 0; color: rgba(238, 243, 239, .8); }
.consent-box a { color: var(--paper); text-underline-offset: 0.1875rem; }
/* Clay cursor block from the logo */
.consent-mark { display: inline-block; width: 0.4375rem; height: 0.8125rem; margin-right: 0.5rem; vertical-align: -0.125rem; background: var(--terra); border-radius: 1px; }
.consent-box .row { display: flex; align-items: center; gap: 0.375rem; margin-left: auto; }
.c-btn {
  font: inherit; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 0.5625rem 1rem; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
  color: var(--paper); background: rgba(238, 243, 239, .12);
  transition: background .25s, color .25s;
}
.c-btn:hover { background: rgba(238, 243, 239, .2); }
.c-btn.c-solid { color: var(--ink); background: var(--paper); }
.c-btn.c-solid:hover { background: #fff; }
.c-btn:focus-visible, .consent-box a:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.c-link { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase; margin-right: 0.5rem; }
/* Settings view, opened from "Cookie settings" */
.consent-box h2 { flex: 1 1 100%; margin: 0; font-size: 0.875rem; font-weight: 600; letter-spacing: -.01em; }
.consent-box .prefs { flex: 1 1 100%; border-top: 1px solid rgba(238, 243, 239, .12); }
.consent-box .toggle-row { padding: 0.5rem 0; }
.consent-box .toggle-row small { color: rgba(238, 243, 239, .65); }
.consent-box .switch span { background: rgba(238, 243, 239, .22); }
@media (max-width: 720px) {
  .consent-box { left: 0.75rem; right: 0.75rem; width: auto; bottom: 5.25rem; padding: 0.875rem; }
  .consent-box .row { flex: 1 1 100%; }
  .consent-box .row .c-btn { flex: 1; }
}
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.625rem 0; }
.toggle-row small { display: block; color: var(--muted); }
.switch { position: relative; width: 2.75rem; height: 1.625rem; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: var(--paper-3); border-radius: 999px; transition: background .25s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 0.1875rem; left: 0.1875rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 0.1875rem rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--olive); }
.switch input:checked + span::after { transform: translateX(1.125rem); }
.switch input:disabled + span { opacity: .55; }

/* WA:start */
/* --------------------------------------------------------------------------
   WhatsApp button + preset messages (markup written by build.py, behaviour in
   whatsapp.js). Bottom-right, level with the dock (which is centred) and clear
   of the cookie notice (bottom-left on desktop, above the dock on phones).
   build.py copies this block into 404.html, hence the token fallbacks.
   -------------------------------------------------------------------------- */
.wa {
  position: fixed; z-index: 50; text-align: left;
  right: calc(1.25rem + env(safe-area-inset-right, 0px));
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  font-family: var(--sans); font-size: 0.875rem; line-height: 1.45;
}
.wa[open] { z-index: 61; } /* an open panel sits above the cookie notice */
.wa-btn {
  list-style: none; display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  color: var(--paper, #EEF3EF); background: var(--olive, #3F6E5C);
  border: 1px solid rgba(238, 243, 239, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1.25rem 2.75rem -0.875rem rgba(19, 48, 42, .55);
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background .25s, transform .3s var(--ease, cubic-bezier(.2, .7, .1, 1));
}
.wa-btn::-webkit-details-marker, .wa-btn::marker { display: none; content: ""; }
.wa-btn:hover { background: var(--ink, #13302A); }
.wa-btn:active { transform: scale(.95); }
.wa[open] .wa-btn { background: var(--ink, #13302A); }
.wa-btn:focus-visible { outline: 2px solid var(--terra, #C0714F); outline-offset: 3px; border-radius: 50%; }
.wa-glyph { width: 1.5rem; height: 1.5rem; }
html.has-cursor .wa-btn { cursor: none; }

.wa-panel {
  position: absolute; right: 0; bottom: calc(100% + 0.75rem);
  width: min(21.5rem, calc(100vw - 2.5rem));
  padding: 0.75rem;
  color: var(--paper, #EEF3EF);
  background: rgba(19, 48, 42, .94);
  -webkit-backdrop-filter: saturate(170%) blur(1.375rem);
  backdrop-filter: saturate(170%) blur(1.375rem);
  border: 1px solid rgba(238, 243, 239, .1);
  border-radius: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1.875rem 3.75rem -1.25rem rgba(19, 48, 42, .6);
  transform-origin: bottom right;
}
.wa[open] .wa-panel { animation: waIn .3s var(--ease, cubic-bezier(.2, .7, .1, 1)) both; }
@keyframes waIn { from { opacity: 0; transform: translateY(0.5rem) scale(.98); } }
.wa-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.125rem 0.125rem 0.625rem 0.375rem; }
.wa-title { margin: 0; font-size: 0.9375rem; font-weight: 600; letter-spacing: -.01em; }
.wa-title::before { content: ""; display: inline-block; width: 0.4375rem; height: 0.8125rem; margin-right: 0.5rem; vertical-align: -0.0625rem; background: var(--terra, #C0714F); border-radius: 1px; }
.wa-close {
  flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  color: var(--paper, #EEF3EF); background: rgba(238, 243, 239, .1);
  font-size: 1.125rem; line-height: 1; transition: background .2s;
}
.wa-close:hover { background: rgba(238, 243, 239, .2); }
.wa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.wa-opt {
  display: flex; align-items: center; gap: 0.625rem;
  min-height: 2.75rem; padding: 0.625rem 0.875rem;
  border-radius: 0.875rem;
  color: rgba(238, 243, 239, .9); background: rgba(238, 243, 239, .06);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.wa-opt::after { content: "↗"; margin-left: auto; font-family: var(--mono, monospace); font-size: 0.8125rem; color: var(--olive-soft, #8BB19B); }
.wa-opt:hover { background: rgba(238, 243, 239, .14); color: var(--paper, #EEF3EF); }
.wa-opt.is-here { background: var(--paper, #EEF3EF); color: var(--ink, #13302A); font-weight: 500; }
.wa-opt.is-here:hover { background: #fff; }
.wa-opt.is-here::after { color: var(--olive, #3F6E5C); }
.wa-here {
  flex: none; font-family: var(--mono, monospace); font-size: 0.625rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  color: var(--terra-text, #9A5235);
}
.wa-opt:focus-visible, .wa-close:focus-visible { outline: 2px solid var(--terra, #C0714F); outline-offset: 2px; }
.wa-note { margin: 0.625rem 0.375rem 0.125rem; font-size: 0.75rem; color: rgba(238, 243, 239, .68); }
@media (max-width: 720px) {
  .wa { right: calc(0.75rem + env(safe-area-inset-right, 0px)); bottom: calc(0.875rem + env(safe-area-inset-bottom, 0px)); }
  .wa-panel { width: calc(100vw - 1.5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); }
  /* On phones the centred dock would run into the button: centre it in the space to the button's left */
  body:has(> .wa) .dock { left: calc(50% - 2rem); }
}
@media (prefers-reduced-motion: reduce) {
  .wa[open] .wa-panel { animation: none; }
  .wa-btn, .wa-opt, .wa-close { transition: none; }
}
/* WA:end */

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.rise { opacity: 0; transform: translateY(1.5rem); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rise.in { opacity: 1; transform: none; }
.rise.d1 { transition-delay: .08s; } .rise.d2 { transition-delay: .16s; } .rise.d3 { transition-delay: .24s; }
html.no-js .rise { opacity: 1; transform: none; }
/* Hero animates on load, independent of scroll observers */
.hero .rise { opacity: 1; transform: none; animation: riseIn 1s var(--ease) both; transition: none; }
.hero .rise.d1 { animation-delay: .12s; } .hero .rise.d2 { animation-delay: .24s; } .hero .rise.d3 { animation-delay: .36s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rise { opacity: 1; transform: none; }
  .scrub .w { color: var(--ink); }
  .hero h1 .accent { animation: none; }
  /* The cursor only switches on and off (no movement, well under 3 flashes/s), so it keeps blinking */
  .logo-cursor { animation-duration: 1.1s !important; animation-iteration-count: infinite !important; }
  /* The tile strip drifts slowly and steadily, so it keeps sliding too */
  .strip-track { animation-duration: 80s !important; animation-iteration-count: infinite !important; }
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.legal { padding: 8.75rem 0 7.5rem; }
.legal .wrap { max-width: 51.25rem; }
.legal h1 { font-size: clamp(2.25rem, min(4.8vw, 7.7vh), 3.75rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; margin: 0.875rem 0 0.75rem; }
.legal .updated { color: var(--muted); font-size: 0.875rem; margin: 0 0 3.5rem; }
.legal h2 { font-size: 1.375rem; font-weight: 500; letter-spacing: -.02em; margin: 3.5rem 0 0.875rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.125rem; font-weight: 600; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { color: #22403A; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.375rem; }
.legal a { color: var(--terra-text); }
.link-btn { font: inherit; color: var(--terra-text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.legal .box { background: var(--paper-2); border-radius: 1.125rem; padding: 1.375rem 1.5rem; margin: 1.5rem 0; }
.legal .box p { margin: 0 0 0.25rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin: 1.125rem 0; }
.legal th, .legal td { text-align: left; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-family: var(--mono); font-size: 0.7188rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.legal .table-scroll { overflow-x: auto; }
.legal-foot { border-top: 1px solid var(--line); padding: 2rem 0 3rem; font-size: 0.875rem; color: var(--muted); }
.legal-foot .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.legal-foot a { color: var(--ink); text-decoration: none; margin-right: 1rem; }
.legal-foot a:hover { color: var(--terra-text); }
.legal-foot button { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; margin-right: 1rem; cursor: pointer; }
.legal-foot button:hover { color: var(--terra-text); }
.back { justify-self: end; font-size: 0.7812rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.back:hover { color: var(--terra-text); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .product { grid-template-columns: 1fr; text-align: center; }
  .product-copy { margin-left: auto; margin-right: auto; }
  .product-example { margin: 1.25rem auto 0; padding: 0.75rem 0 0; border-left: 0; border-top: 2px solid #D08766; max-width: 24em; }
  .stores { justify-content: center; }
  .stage { min-height: 37.5rem; }
}

@media (max-width: 900px) {
  .topbar .wrap { grid-template-columns: 1fr auto auto; gap: 1rem; }
  .clock { display: none; }
  .wordmark .sub { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .founder { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .founder:has(.has-img) { aspect-ratio: 1 / 1; max-width: 35rem; }
  .founder .photo img { object-position: 50% 12%; }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; padding-left: 2.5rem; }
  .steps::before { left: 0.4375rem; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps::after { left: 0.4062rem; top: 0; width: 2px; height: var(--p, 0%); transition: height .2s linear; }
  .step { padding-top: 0; }
  .step::before { left: -2.5rem; top: 0.375rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .copy { text-align: left; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .topbar .wrap { height: 3.5rem; }
  .logo { height: 0.9375rem; }
  .cta-top { display: none; }
  .back { display: none; }
  .lang { gap: 0.75rem; }
  .hero { padding-top: 3.5rem; }
  .hero .actions { align-self: stretch; }
  .hero .actions .btn { align-self: stretch; justify-content: center; }
  .strip { padding-bottom: 5.5rem; }
  .tile { width: 3.375rem; height: 3.375rem; }
  .facts { grid-template-columns: 1fr; }
  .facts li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .products, .contact { border-radius: 1.75rem; }
  .contact { margin: 0 0.5rem; }
  .stage { min-height: 35rem; }
  .phone { transform: scale(.88); }
  .halo { width: 22.5rem; height: 22.5rem; }
  .details li { grid-template-columns: 1fr; gap: 2px; }
  .dock { bottom: 0.875rem; }
  .dock .links { display: none; }
  .dock .menu-btn { display: grid; }
  .dock .current { display: flex; }
  .legal { padding-top: 6.875rem; }
}

@media (min-width: 721px) {
  .sheet { display: none; }
}

/* Light button on dark sections (Solutions call to action) */
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--olive); border-color: var(--olive); color: var(--paper); }

/* Link from each homepage solution to its own page */
.sol-more { display: inline-flex; gap: 0.5rem; margin-top: 1.375rem; color: var(--paper); text-decoration: none; font-size: 0.9375rem; border-bottom: 1px solid rgba(238, 243, 239, .3); padding-bottom: 2px; }
.sol-more:hover { border-color: var(--olive-soft); }
.sol-more .arrow { transition: transform .3s var(--ease); }
.sol-more:hover .arrow { transform: translateX(0.1875rem); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-grid .section-head { margin: 0; text-align: left; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.375rem 2.5rem 1.375rem 0; position: relative;
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 0.25rem; top: 50%; width: 0.875rem; height: 0.875rem; margin-top: -0.4375rem;
  background: linear-gradient(var(--ink), var(--ink)) center / 0.875rem 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 0.875rem no-repeat;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); background-image: linear-gradient(var(--terra), var(--terra)), linear-gradient(var(--terra), var(--terra)); }
.faq-item summary:hover { color: var(--terra-text); }
.faq-item summary:focus-visible { outline: 2px solid var(--terra); outline-offset: 0.25rem; }
.faq-item p { margin: 0 0 1.5rem; max-width: 40em; color: var(--muted); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* Solution pages */
.sol-hero { padding: clamp(7.5rem, 18vh, 11.25rem) 0 clamp(3.5rem, 9vh, 6rem); }
.crumbs { font-size: 0.8125rem; color: var(--muted); margin-bottom: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--terra-text); border-color: var(--terra-text); }
.sol-hero h1 { margin: 1rem 0 0; font-weight: 500; font-size: clamp(2.875rem, min(7.2vw, 11.5vh), 7rem); line-height: .94; letter-spacing: -.05em; }
.sol-tag { font-size: clamp(1.25rem, 2.05vw, 1.75rem); letter-spacing: -.02em; color: var(--terra-text); margin: 1.375rem 0 0; max-width: 24em; }
.sol-intro { font-size: clamp(1rem, 1.25vw, 1.1875rem); color: var(--muted); max-width: 38em; margin: 1.5rem 0 0; }
.sol-hero .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2.25rem; }
.sol-two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.sol-two h2, .sol-page .section-head h2 { font-size: clamp(1.875rem, min(3.6vw, 5.8vh), 3.125rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.02; margin: 0.875rem 0 0; text-wrap: balance; }
.sol-text { font-size: clamp(1rem, 1.25vw, 1.1875rem); margin: 0; max-width: 34em; }
.pains { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.625rem; }
.pains li { position: relative; padding: 0.875rem 1rem 0.875rem 2.75rem; background: var(--paper-2); border-radius: 0.875rem; }
.pains li::before { content: ""; position: absolute; left: 1.125rem; top: 50%; width: 0.625rem; height: 0.625rem; margin-top: -0.3125rem; background: var(--terra); }
.sol-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.625rem; }
.sol-steps li { display: grid; grid-template-columns: 2.75rem 1fr; column-gap: 0.875rem; }
.sol-steps .num { grid-row: span 2; font-family: var(--mono); font-size: 0.8125rem; color: var(--olive-soft); padding-top: 0.3125rem; }
.sol-steps h3 { margin: 0; font-size: clamp(1.1875rem, 1.55vw, 1.4375rem); font-weight: 500; letter-spacing: -.02em; color: var(--paper); }
.sol-steps p { margin: 0.375rem 0 0; color: #A9C3B4; max-width: 30em; }
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.875rem; }
.benefit { background: var(--paper-2); border-radius: var(--radius); padding: clamp(1.375rem, 2.4vw, 2rem); }
.benefit h3 { margin: 0 0 0.625rem; font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.benefit p { margin: 0; color: var(--muted); font-size: 0.9688rem; }
.cta-band {
  background: var(--ink); color: var(--paper); text-align: center;
  border-radius: 2.5rem; margin: 0 clamp(0.5rem, 1.2vw, 1rem) clamp(3rem, 8vh, 6rem);
  padding: clamp(4.5rem, 12vh, 8.25rem) 0;
}
.cta-band h2 { font-size: clamp(1.875rem, min(3.7vw, 5.9vh), 3.375rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.04; max-width: 18ch; margin: 0 auto 2rem; text-wrap: balance; }
@media (max-width: 1080px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .sol-two { grid-template-columns: minmax(0, 1fr); } .sol-how .product > div:first-child { text-align: left; } }
@media (max-width: 560px) { .benefits { grid-template-columns: minmax(0, 1fr); } .cta-band { border-radius: 1.75rem; margin: 0 0.5rem 3rem; } }


/* Solutions catalogue (/solutii) */
.cat-hero { padding-bottom: clamp(1.75rem, 4vh, 3rem); }
.fchips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.25rem; }
.fchip {
  font: inherit; font-size: 0.875rem; padding: 0.5625rem 1rem; border-radius: 999px; cursor: pointer;
  background: var(--paper-2); color: var(--ink); border: 1px solid transparent; transition: background .25s, color .25s;
}
.fchip:hover { border-color: var(--line); background: var(--paper-3); }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.fchip:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.fchips[hidden] { display: none; }
.cat-tabs { display: inline-flex; gap: 0.25rem; padding: 0.3125rem; margin-top: 2.25rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; }
.cat-tabs [role="tab"] {
  font: inherit; font-size: 1rem; font-weight: 500; letter-spacing: -.01em; padding: 0.75rem 1.375rem; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem; transition: background .25s, color .25s;
}
.cat-tabs [role="tab"]:hover { background: var(--paper-3); }
.cat-tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--paper); }
.cat-tabs [role="tab"]:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.cat-tabs .n { font-family: var(--mono); font-size: 0.75rem; font-weight: 400; padding: 2px 0.5rem; border-radius: 999px; background: var(--paper-3); color: var(--ink); }
.cat-tabs [aria-selected="true"] .n { background: rgba(238, 243, 239, .16); color: var(--paper); }
.cat-tabs ~ .fchips { margin-top: 1.125rem; }
.no-js .cat-tabs, .no-js .fchips { display: none; }
.cat-panel + .cat-panel { margin-top: 4rem; }
@media (max-width: 560px) {
  .cat-tabs { display: flex; }
  .cat-tabs [role="tab"] { flex: 1; padding: 0.6875rem 0.625rem; font-size: 0.9375rem; gap: 0.5rem; }
}
.cat-count { margin: 1rem 0 0; font-family: var(--mono); font-size: 0.75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); min-height: 1.4em; }
.cat-section { padding-top: 0; overflow-anchor: none; } /* switching tabs swaps the cards; keep the page still */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.75rem), 1fr)); gap: 0.875rem; }
.cat-card {
  display: flex; flex-direction: column; gap: 0.625rem; background: var(--paper-2); border-radius: var(--radius);
  padding: clamp(1.375rem, 2.2vw, 1.875rem); min-width: 0; scroll-margin-top: 5.625rem;
}
.cat-card[hidden] { display: none; }
.cat-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.cat-top .tile { width: 3.375rem; height: 3.375rem; border-radius: 0.5rem; position: relative; overflow: hidden; flex: none; }
.cat-top .tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .06em; text-transform: uppercase; padding: 0.3125rem 0.625rem; border-radius: 999px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.now { background: var(--olive); color: var(--paper); border-color: var(--olive); }
.cat-kind { margin: 0; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cat-card h2 { margin: 0; font-size: clamp(1.1875rem, 1.5vw, 1.375rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.cat-problem { margin: 0; color: var(--ink-2); }
.cat-benefits { list-style: none; padding: 0; margin: 0.25rem 0 0; display: grid; gap: 0.375rem; font-size: 0.9375rem; color: var(--muted); }
.cat-benefits li { position: relative; padding-left: 1.125rem; }
.cat-benefits li::before { content: ""; position: absolute; left: 0; top: .55em; width: 0.4375rem; height: 0.4375rem; background: var(--olive-soft); }
.cat-doc { margin: 2px 0 0; font-size: 0.8125rem; color: var(--ink); background: rgba(139, 177, 155, .18); padding: 0.5rem 0.625rem; border-radius: 0.625rem; }
.cat-actions { margin-top: auto; padding-top: 0.875rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-sm { padding: 0.625rem 1rem; font-size: 0.875rem; }
.cat-more { font-size: 0.875rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.cat-more:hover { color: var(--terra-text); border-color: var(--terra-text); }
.cat-note { margin: 1.75rem 0 0; font-size: 0.875rem; color: var(--muted); max-width: 52em; }

/* Homepage: two buttons under the solutions */
.solutions-cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
/* Clay fill, a shade deeper than the cursor clay so white text stays readable (4.8:1) */
.btn-outline-light { background: #AE5C3B; color: #FFFFFF; border-color: #AE5C3B; }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

