/* The style of the site. The green is the colour of the brand (site.yml: color). */
:root {
  --green: #0d7a37;
  --green-dark: #095c29;
  --green-tint: #eef6f0;
  --ink: #16211b;
  --text: #37423c;
  --muted: #5d6963;
  --line: #dfe5e1;
  --paper: #ffffff;
  --soft: #f6f8f6;
  --night: #10201a;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--text); background: var(--paper); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 750; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 0.75rem; z-index: 10; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
/* The logo: the mark and the name in the grey of the Esalogica logo. */
.brand { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; color: #717171; text-decoration: none; line-height: 1; }
.brand:hover { color: #717171; }
.brand img { width: 1.75rem; height: 1.75rem; }
.menu { display: flex; gap: 1.5rem; margin-left: auto; }
.menu a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.menu a:hover { color: var(--green); }
.langs { display: flex; gap: 0.75rem; font-size: 0.9rem; }
.langs:empty { display: none; }

/* Buttons */
.button { display: inline-block; padding: 0.8rem 1.35rem; border-radius: 8px; background: var(--green); color: #fff; font-weight: 650; text-decoration: none; border: 1px solid var(--green); }
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.button--ghost { background: transparent; color: var(--ink); border-color: #b9c4bd; }
.button--ghost:hover { background: var(--soft); color: var(--ink); border-color: var(--ink); }
.button--small { padding: 0.45rem 0.9rem; font-size: 0.92rem; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--green-tint), var(--paper)); border-bottom: 1px solid var(--line); }
.hero__in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
.eyebrow { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; }
.lead { font-size: 1.22rem; line-height: 1.55; margin-top: 1.4rem; max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.fine { font-size: 0.92rem; color: var(--muted); margin-top: 1rem; }

/* The terminal with the installation command */
.term { background: var(--night); color: #d9e6de; border-radius: 12px; box-shadow: 0 24px 48px -24px rgba(16, 32, 26, 0.55); overflow: hidden; }
.term__bar { display: flex; gap: 0.4rem; padding: 0.8rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.term__bar span { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.term pre { margin: 0; padding: 1.2rem 1.25rem 1.4rem; font: 0.86rem/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.term .c { color: #7f9a8b; }
.term .p { color: #6fcf97; }

/* Sections */
.band { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.band--soft { background: var(--soft); border-block: 1px solid var(--line); }
.band__head { max-width: 44rem; margin-bottom: 2.5rem; }
.band__head p { margin-top: 0.9rem; font-size: 1.1rem; }
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem; display: flex; flex-direction: column; }
.card__tag { font: 700 0.8rem/1 var(--mono); color: var(--green); letter-spacing: 0.06em; margin-bottom: 0.7rem; }
.card > p { margin-top: 0.6rem; }
.ticks { margin-top: 1.1rem; display: grid; gap: 0.55rem; font-size: 0.96rem; }
.ticks li { padding-left: 1.5rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.5em; width: 0.7rem; height: 0.38rem; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.card__more { margin-top: auto; padding-top: 1.3rem; font-weight: 650; font-size: 0.96rem; }
.who { border-top: 3px solid var(--green); border-radius: 4px 4px 12px 12px; }
.who__level { font-size: 0.88rem; color: var(--muted); margin-top: 0.35rem; }
.feature h3 { font-size: 1.02rem; }
.feature p { font-size: 0.96rem; margin-top: 0.4rem; }
.feature { padding-top: 1.1rem; border-top: 1px solid var(--line); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; margin-bottom: 0.9rem; }
.steps p { margin-top: 0.45rem; font-size: 0.98rem; }
.after { margin-top: 2.2rem; }
code { font: 0.9em var(--mono); background: var(--green-tint); padding: 0.1em 0.35em; border-radius: 4px; }

/* The call for the trial */
.call { background: var(--night); color: #d9e6de; }
.call h2 { color: #fff; }
.call__in { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2.5rem; align-items: center; }
.call p { margin-top: 0.9rem; font-size: 1.08rem; max-width: 38rem; }
.call .actions { justify-content: flex-end; margin-top: 0; }
.call a:not(.button) { color: #8fe0b0; }

/* Footer */
.foot { border-top: 1px solid var(--line); font-size: 0.93rem; color: var(--muted); }
.foot__in { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; padding-block: 2.5rem; align-items: start; }
.foot p { margin-top: 0.6rem; }
.foot nav { display: grid; gap: 0.4rem; justify-items: end; }
.foot__legal { grid-column: 1 / -1; margin: 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }

@media (max-width: 60rem) {
  .hero__in, .call__in { grid-template-columns: 1fr; gap: 2.5rem; }
  .call .actions { justify-content: flex-start; }
  .grid--3, .steps { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .menu { display: none; }
  .langs { margin-left: auto; }
  .top__in > .button { margin-left: auto; }
  .langs:not(:empty) + .button { margin-left: 0; }
}
@media (max-width: 34rem) {
  body { font-size: 16px; }
  .grid--4 { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
  .foot nav { justify-items: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The pages of the modules */
.hero--page .hero__in { grid-template-columns: 1fr; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero--page h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 46rem; }
.hero--page .lead { max-width: 44rem; }
.crumb { font-size: 0.9rem; margin-bottom: 1.4rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: start; }
.split__text p { margin-top: 0.9rem; }
.split__text h2 + p { font-size: 1.1rem; }
.rows { border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 13rem 1fr; gap: 1.25rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.rows dt, .rows strong { color: var(--ink); font-weight: 650; }
.rows dd { margin: 0; }
.note { margin-top: 1.5rem; padding: 1rem 1.2rem; border-left: 3px solid var(--green); background: var(--green-tint); border-radius: 0 8px 8px 0; font-size: 0.97rem; }
.band--soft .note { background: var(--paper); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--after { margin-top: 2.5rem; }
.plan { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.plan li { padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 0.94rem; }
.card__more a + a { margin-left: 1.1rem; font-weight: 400; }
@media (max-width: 60rem) {
  .split { grid-template-columns: 1fr; gap: 1.75rem; }
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: 1fr; }
  .rows > div { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (max-width: 34rem) { .grid--5 { grid-template-columns: 1fr; } }

/* The contact page */
.card__action { margin-top: auto; padding-top: 1.4rem; }

/* The form of the contact page */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1.75rem; display: grid; gap: 1.1rem; }
.form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: 0.35rem; font-size: 0.93rem; font-weight: 650; color: var(--ink); }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid #b9c4bd; border-radius: 8px; padding: 0.65rem 0.8rem; width: 100%; }
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.form button { justify-self: start; cursor: pointer; font: inherit; font-weight: 650; }
.form__fine { font-size: 0.88rem; color: var(--muted); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 34rem) { .form__pair { grid-template-columns: 1fr; } .form { padding: 1.25rem; } }
.rows--stacked { margin-top: 1.2rem; }
.rows--stacked > div { grid-template-columns: 1fr; gap: 0.2rem; }
.rows--stacked + p { margin-top: 1.2rem; }

/* The pricing page */
.price { margin-top: 1.1rem; width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.price th, .price td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price thead th { font-size: 0.8rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; border-bottom-color: #b9c4bd; }
.price tbody th { font-weight: 400; color: var(--ink); padding-right: 1rem; }
.price td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 1rem; }
.price td:last-child { color: var(--muted); }
.price thead th:not(:first-child) { text-align: right; }
.price--wide td:last-child { color: inherit; }
.price-scroll { overflow-x: auto; }
.price-scroll .price { min-width: 34rem; }

/* The screenshots of the panel */
.shot { margin: 2.5rem 0 0; }
.shot__frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: 0 18px 40px -22px rgba(16, 32, 26, 0.35); }
.shot__bar { display: flex; gap: 0.4rem; padding: 0.6rem 0.8rem; background: var(--soft); border-bottom: 1px solid var(--line); }
.shot__bar span { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #c9d2cc; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 0.8rem; font-size: 0.92rem; color: var(--muted); }
.band--shot { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.band--shot .shot { margin-top: 0; }
.split > .shot, .grid > .shot { grid-column: 1 / -1; }
