/* Eventvoi public site. One file, no build step, no outside requests.
   Direction: "the team's desk at the start of the day". A deep pine band (the app's own sidebar colour) holds the
   one loud thing, the real Workflow screen; below it the page is quiet sage-grey paper with real screens laid on it.
   The app's clay is kept for one job only: the "Try the demo" button, the same colour as "To do" inside the app.
   Type: Bricolage Grotesque (self-hosted, SIL OFL, site/fonts/) for headings, menu and buttons; the system face for
   reading. Light and dark follow the device (prefers-color-scheme). Mobile first; wider screens from 48rem. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --paper: #eef2ee;
  --surface: #ffffff;
  --ink: #17211e;
  --muted: #4f5c57;
  --line: #d3dcd6;
  --link: #1f5a4a;
  --moss: #dde9e2;
  --pine: #1f3a34;
  --on-pine: #f3f6f2;
  --on-pine-muted: #c0d3c9;
  --clay: #ab4c25;
  --clay-hover: #933f1d;
  --on-clay: #ffffff;
  --wa: #1f6f4a;
  --on-wa: #ffffff;
  --focus: #ab4c25;
  --shadow: 0 1px 2px rgb(23 33 30 / 0.06), 0 28px 56px -28px rgb(31 58 52 / 0.45);

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 72rem;
  --measure: 36rem;
  --gutter: 1.25rem;
  --space: clamp(3.5rem, 8vw, 6.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1916;
    --surface: #172521;
    --ink: #e6eee9;
    --muted: #a7b6af;
    --line: #2b3c36;
    --link: #8fd0b5;
    --moss: #1c312a;
    --pine: #17302a;
    --on-pine: #eef4f0;
    --on-pine-muted: #b3c9be;
    --clay: #e3895f;
    --clay-hover: #eda07c;
    --on-clay: #1b0d06;
    --wa: #1f6f4a;
    --on-wa: #ffffff;
    --focus: #f0a47f;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 28px 56px -28px rgb(0 0 0 / 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--text);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 6.2vw, 4.25rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.4rem; letter-spacing: -0.005em; }
p, ul, ol { margin: 0 0 1rem; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); }
.lead { font-size: 1.2rem; line-height: 1.55; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: 0.75rem; top: -5rem; z-index: 50;
  background: var(--surface); color: var(--ink); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 0.75rem; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.35rem;
  font: 650 1.02rem/1.2 var(--display);
  background: var(--clay); color: var(--on-clay); text-decoration: none;
  border: 2px solid transparent; border-radius: 10px;
}
.button:hover { background: var(--clay-hover); color: var(--on-clay); }
.button.quiet { background: transparent; color: var(--link); border-color: currentColor; }
.button.quiet:hover { background: var(--moss); }
.on-pine .button.quiet { color: var(--on-pine); }
.on-pine .button.quiet:hover { background: rgb(255 255 255 / 0.1); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1rem; }

/* ---------- top bar ---------- */
.top { background: var(--pine); color: var(--on-pine); position: relative; z-index: 10; }
.top .bar { display: flex; align-items: center; gap: 0.5rem; min-height: 4.25rem; }
.logo {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-right: auto;
  color: var(--on-pine); text-decoration: none; font: 800 1.35rem/1 var(--display); letter-spacing: -0.02em;
}
.logo:hover { color: var(--on-pine); }
.mark {
  width: 1.6rem; height: 1.6rem; border-radius: 0.45rem; flex: none;
  background: linear-gradient(135deg, #4f8f78 0%, #3d6f5f 45%, #ab4c25 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
}
.top a { color: var(--on-pine); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav a, .signin {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.7rem;
  font: 550 0.98rem/1 var(--display); text-decoration: none; border-radius: 8px;
}
.nav a:hover, .signin:hover { background: rgb(255 255 255 / 0.1); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.cta { display: flex; align-items: center; gap: 0.5rem; }
.top .button { min-height: 44px; padding: 0.5rem 0.85rem; font-size: 0.98rem; white-space: nowrap; }
.top .button, .top .button:hover { color: var(--on-clay); }
.nav, .signin { display: none; }

/* phone menu: a native disclosure, works without JavaScript and with a keyboard */
.menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0 0.75rem; border-radius: 8px; border: 1px solid rgb(255 255 255 / 0.35);
  font: 600 0.98rem/1 var(--display);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::before {
  content: ""; width: 1rem; height: 0.7rem;
  background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat,
              linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
              linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat;
}
.menu[open] > summary { background: rgb(255 255 255 / 0.12); }
.menu nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--pine); border-top: 1px solid rgb(255 255 255 / 0.12);
  padding: 0.25rem var(--gutter) 1.25rem; box-shadow: 0 24px 40px -20px rgb(0 0 0 / 0.5);
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a {
  display: flex; align-items: center; min-height: 52px; padding: 0 0.25rem;
  font: 600 1.15rem/1 var(--display); text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / 0.12);
}
.menu li:last-child a { border-bottom: 0; }
.menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; }

/* ---------- hero: the one loud thing ---------- */
.hero { background: var(--pine); color: var(--on-pine); padding: clamp(2.5rem, 7vw, 5rem) 0 0; overflow: hidden; }
.hero h1 { color: var(--on-pine); max-width: 18ch; }
.hero .lead { color: var(--on-pine-muted); max-width: 34rem; }
.hero .note { color: var(--on-pine-muted); font-size: 0.95rem; max-width: 34rem; margin-bottom: 0; }
.hero-shot { margin: clamp(2.25rem, 5vw, 3.5rem) 0 0; }
.hero-shot img {
  width: 100%; border-radius: 14px 14px 0 0;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 40px 80px -30px rgb(0 0 0 / 0.6);
}
.hero-shot.phone img { max-width: 22rem; margin-inline: auto; border: 7px solid #0c1513; border-bottom: 0; border-radius: 30px 30px 0 0; }

/* page heads on the inner pages: the same pine, shorter */
.pagehead { background: var(--pine); color: var(--on-pine); padding: clamp(2.25rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem); }
.pagehead h1 { color: var(--on-pine); font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 20ch; }
.pagehead .lead { color: var(--on-pine-muted); max-width: 36rem; margin: 0; }

/* ---------- sections ---------- */
.section { padding: var(--space) 0 0; }
.section h2 { max-width: 22ch; }

/* the problem: a short statement, set larger */
.statement p { font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.55; max-width: 40rem; }

/* three steps: a real sequence, so numbered */
ol.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.75rem; counter-reset: step; }
ol.steps > li { counter-increment: step; padding-top: 1rem; border-top: 2px solid var(--ink); }
ol.steps > li::before {
  content: counter(step); display: block; margin-bottom: 0.5rem;
  font: 800 2.25rem/1 var(--display); color: var(--link);
}
ol.steps p { margin: 0; color: var(--muted); }

/* a picture beside its few lines of text */
.feature { display: grid; gap: 1.5rem; align-items: center; padding: var(--space) 0 0; }
.feature .text { max-width: var(--measure); }
.feature .text p { color: var(--muted); }
.feature .text p:last-child { margin-bottom: 0; }
.screen { margin: 0; }
.screen img {
  width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
/* on a phone screen, a tall phone picture shows its top part only */
.screen.crop img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.screen.phone { max-width: 19rem; margin-inline: auto; }
.screen.phone img { border: 7px solid #0c1513; border-radius: 30px; aspect-ratio: 390 / 700; object-fit: cover; object-position: top; }

/* what is better than a sheet: a plain list, two columns on wide screens */
.gains { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem 2.5rem; }
.gains li { padding-left: 1.1rem; border-left: 3px solid var(--link); }
.gains h3 { font-size: 1.15rem; }
.gains p { margin: 0; color: var(--muted); }

.split { display: grid; gap: 2.5rem; }
.plain { padding-left: 1.2rem; }
.plain li { margin-bottom: 0.5rem; }
.boxed { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.4rem; }
.boxed > :last-child { margin-bottom: 0; }
.price { font: 700 clamp(1.5rem, 3vw, 2rem)/1.2 var(--display); margin: 0 0 0.5rem; }

/* closing band */
.closing { background: var(--pine); color: var(--on-pine); padding: var(--space) 0; margin-top: var(--space); }
.closing h2 { color: var(--on-pine); }
.closing p { color: var(--on-pine-muted); max-width: 34rem; }
.closing a:not(.button) { color: var(--on-pine); }
.closing .actions { margin-bottom: 0; }

/* inner pages: grouped lists of what the app does */
.groups { display: grid; gap: 2rem 3rem; margin-top: 2rem; }
.groups p { margin: 0; color: var(--muted); }
.end { padding-bottom: var(--space); }

/* ---------- WhatsApp: hidden until a number is set in whatsapp.js ---------- */
.whatsapp { gap: 0.55rem; background: var(--wa); color: var(--on-wa); }
.whatsapp:hover { background: #185c3d; color: var(--on-wa); }
.whatsapp svg { width: 1.3rem; height: 1.3rem; flex: none; }
.whatsapp.inline { display: none; }
.whatsapp.float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 30;
  border-radius: 999px; min-height: 52px; padding: 0.7rem 1.1rem;
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / 0.45);
}

/* ---------- FAQ ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 1rem; list-style: none; }
.toc a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.95rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink);
}
.toc a:hover { border-color: var(--link); }
.faq { max-width: 46rem; }
.faq h2 { font-size: 1.6rem; margin: 3rem 0 1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq h2 + details { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  min-height: 52px; padding: 0.8rem 0; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--display); color: var(--link); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { margin: 0 0 1rem; color: var(--muted); max-width: 40rem; }

/* ---------- your data ---------- */
ul.protect { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; max-width: 44rem; }
ul.protect li { padding-left: 1.1rem; border-left: 3px solid var(--link); }
ul.protect strong { display: block; font: 700 1.15rem/1.3 var(--display); margin-bottom: 0.2rem; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 2.5rem 0 5.5rem; color: var(--muted); font-size: 0.95rem; }
.closing + .foot, main + .foot { border-top: 0; }
.foot .wrap { display: grid; gap: 1.25rem; }
.foot .logo { color: var(--ink); font-size: 1.15rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.foot ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.foot p { margin: 0; }

/* ---------- wider screens ---------- */
@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
  .nav, .signin { display: inline-flex; }
  .menu { display: none; }
  .cta { margin-left: 0.5rem; }
  ol.steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .feature { grid-template-columns: 5fr 7fr; gap: 3.5rem; }
  .feature.flip { grid-template-columns: 7fr 5fr; }
  .feature.flip .text { order: 2; }
  .feature.narrow { grid-template-columns: 7fr 5fr; }
  .feature.narrow.flip { grid-template-columns: 5fr 7fr; }
  .screen.crop img { aspect-ratio: auto; object-fit: fill; }
  .gains { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .groups { grid-template-columns: repeat(2, 1fr); }
  .whatsapp.float { display: none; }
  .whatsapp.inline { display: inline-flex; }
  .foot { padding-bottom: 3rem; }
  .foot .wrap { grid-template-columns: auto 1fr; align-items: center; column-gap: 3rem; }
  .foot ul { justify-content: flex-end; }
  .foot p { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .nav, .signin, .menu, .skip, .whatsapp { display: none !important; }
  .hero, .pagehead, .closing, .top { background: none; color: #000; }
}

/* the narrowest phones: keep logo, "Try the demo" and Menu on one line */
@media (max-width: 23.5rem) {
  :root { --gutter: 1rem; }
  .logo { font-size: 1.15rem; gap: 0.45rem; }
  .menu > summary { padding: 0 0.6rem; }
  .top .button { padding: 0.5rem 0.7rem; }
}
