/* Hosteo marketing site — navy, sky blue, cool white. */
:root {
  --navy: #182b50;
  --navy-deep: #111f3b;
  --navy-text: rgba(255, 255, 255, 0.74);
  --brand: #0a7cbf;
  --brand-strong: #0969a3;
  --brand-soft: #e3f2fb;
  --bg: #fafcfe;
  --surface: #ffffff;
  --sand: #eef4fa;
  --line: #e3eaf2;
  --line-strong: #cfd9e5;
  --ink: #16213a;
  --ink-2: #47526d;
  --muted: #636b80;
  --green: #2e7d5b;
  --green-bg: #e7f3ec;
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 252, 254, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-head.scrolled {
  border-bottom-color: var(--line);
}

.head-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

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

.brand img {
  height: 38px;
  width: auto;
}

.brand span {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.menu a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--ink);
  background: var(--sand);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
}

.lang:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:hover {
  background: var(--sand);
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

.btn-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-deep);
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
}

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

.hero {
  padding: 72px 0 0;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--brand);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin-top: 18px;
  max-width: 860px;
  text-wrap: balance;
}

.hero .tagline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.25;
  color: var(--ink-2);
  max-width: 760px;
  margin-top: 18px;
  text-wrap: balance;
}

.hero .tagline em {
  font-style: italic;
  color: var(--brand-strong);
}

.hero h1 em,
h2 em {
  font-style: italic;
  color: var(--brand-strong);
}

.hero .lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-2);
  max-width: 640px;
  margin-top: 22px;
}

.hero .ctas {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero .note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.hero-shot {
  margin-top: 56px;
  position: relative;
}

.hero-shot::before {
  content: "";
  position: absolute;
  inset: 70px -40px -1px;
  background: var(--navy);
  border-radius: 28px 28px 0 0;
}

.browser {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(17, 31, 59, 0.28), 0 2px 6px rgba(17, 31, 59, 0.1);
  overflow: hidden;
  border: 1px solid rgba(17, 31, 59, 0.08);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #edf2f8;
  border-bottom: 1px solid var(--line);
}

.browser-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cfd9e5;
}

.browser-bar span {
  margin-left: 14px;
  font-size: 12.5px;
  color: var(--muted);
  background: #fff;
  border-radius: 6px;
  padding: 3px 12px;
}

.hero-shot .browser {
  margin: 0 auto;
  max-width: 1100px;
}

.hero-shot .phone {
  position: absolute;
  right: 2%;
  bottom: -30px;
  width: 210px;
  border-radius: 30px;
  border: 7px solid var(--navy-deep);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 31, 59, 0.4);
  background: #fff;
}

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

section {
  padding: 96px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin-top: 14px;
}

.section-head p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 18px;
}

.band {
  background: var(--navy);
  color: #fff;
}

.band .section-head p,
.band .muted {
  color: var(--navy-text);
}

.band .eyebrow {
  color: #7fd0ff;
}

.sand {
  background: var(--sand);
}

.muted {
  color: var(--muted);
}

/* trust strip */
.strip {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
}

.strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 16px 48px;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--ink-2);
  font-size: 15px;
}

.strip li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.strip svg {
  color: var(--brand);
  flex: none;
}

/* problem → solution */
.pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pain {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pain .before {
  font-size: 14px;
  color: #7fd0ff;
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-color: rgba(127, 208, 255, 0.6);
}

.pain h3 {
  margin-top: 10px;
  font-size: 20px;
}

.pain p {
  margin-top: 10px;
  color: var(--navy-text);
  font-size: 15.5px;
}

/* feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.feature {
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature:nth-child(4n) {
  border-right: 0;
}

.feature:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.feature .ic {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-strong);
  margin-bottom: 16px;
}

.feature p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
}

.soon {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: #e6eef9;
  border-radius: 999px;
  padding: 2px 9px;
  vertical-align: middle;
  margin-left: 6px;
}

/* showcase rows */
.showcase {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}

.showcase + .showcase {
  margin-top: 110px;
}

.showcase.flip {
  grid-template-columns: 7fr 5fr;
}

.showcase.flip .copy {
  order: 2;
}

.showcase h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.showcase .copy > p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 17px;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
}

.ticks li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d5b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.band .ticks li::before {
  background-color: rgba(255, 255, 255, 0.1);
}

/* morocco block */
.local {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.local .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.local .card p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
}

.local .big {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 12px;
}

/* ---------- Pricing ---------- */

.billing {
  display: inline-flex;
  padding: 4px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 36px;
}

.billing button {
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 8px 18px;
  border-radius: 9px;
  cursor: pointer;
}

.billing button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(17, 31, 59, 0.1);
}

.billing .save {
  color: var(--green);
  font-size: 12.5px;
  margin-left: 4px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan.featured {
  border: 2px solid var(--navy);
  box-shadow: 0 20px 50px rgba(17, 31, 59, 0.12);
}

.plan .flag {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.plan h3 {
  font-size: 20px;
}

.plan .for {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 4px;
  min-height: 46px;
}

.plan .price {
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.plan .amount {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.plan .unit {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
}

.plan .sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
  min-height: 40px;
}

.plan .btn {
  margin-top: 22px;
  width: 100%;
}

.plan ul {
  list-style: none;
  padding: 22px 0 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 11px;
  font-size: 15px;
}

.plan li {
  display: flex;
  gap: 10px;
}

.plan li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex: none;
}

.plan li.dim {
  color: var(--muted);
}

.plan li.dim::before {
  content: "–";
  color: var(--muted);
}

.plans-note {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}

.compare th,
.compare td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.compare th:first-child,
.compare td:first-child {
  text-align: left;
}

.compare thead th {
  background: var(--sand);
  font-size: 14px;
}

.compare tr.group td {
  background: #f7fafd;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare .y {
  color: var(--green);
  font-weight: 800;
}

.compare .n {
  color: var(--line-strong);
}

.table-scroll {
  overflow-x: auto;
}

.addons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.addon {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
}

.addon .p {
  font-weight: 800;
  color: var(--navy);
  margin-top: 6px;
}

.addon p:last-child {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  color: var(--brand-strong);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin-top: 12px;
  color: var(--ink-2);
}

/* ---------- CTA + form ---------- */

.cta-final {
  text-align: center;
}

.cta-final h2 {
  font-size: clamp(34px, 4.4vw, 52px);
  max-width: 760px;
  margin: 0 auto;
}

.cta-final p {
  color: var(--navy-text);
  margin: 18px auto 0;
  max-width: 560px;
  font-size: 18px;
}

.cta-final .ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: start;
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 18px;
}

.form .full {
  grid-column: 1 / -1;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  width: 100%;
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(24, 43, 80, 0.1);
}

.form .hp {
  position: absolute;
  left: -5000px;
}

.form .legal {
  font-size: 13px;
  color: var(--muted);
}

.notice {
  padding: 14px 16px;
  border-radius: 10px;
  background: #fbe6e2;
  color: #b83a2b;
  font-weight: 600;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 72px 0 24px;
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  margin-top: 16px;
  max-width: 820px;
}

.page-hero p {
  margin-top: 18px;
  font-size: 19px;
  color: var(--ink-2);
  max-width: 680px;
}

.module {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}

.module:first-of-type {
  border-top: 0;
}

.module h2 {
  font-size: 34px;
}

.module .intro {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 17px;
}

.security {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.security .card {
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.security .card p {
  margin-top: 8px;
  color: var(--navy-text);
  font-size: 15px;
}

/* ---------- Footer ---------- */

.site-foot {
  background: var(--navy-deep);
  color: var(--navy-text);
  padding: 64px 0 36px;
  font-size: 14.5px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-foot .brand span {
  color: #fff;
}

.site-foot .foot-h {
  color: #fff;
  font-weight: 700;
  margin: 0 0 12px;
  font-size: 14px;
}

.site-foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-foot a {
  text-decoration: none;
}

.site-foot a:hover {
  color: #fff;
}

.foot-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ---------- Thanks / 404 ---------- */

.center-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
}

.center-page h1 {
  font-size: clamp(36px, 5vw, 52px);
}

.center-page p {
  margin: 16px auto 28px;
  color: var(--ink-2);
  max-width: 520px;
  font-size: 18px;
}

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

@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature:nth-child(4n) {
    border-right: 1px solid var(--line);
  }
  .feature:nth-child(2n) {
    border-right: 0;
  }
  .feature:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }
  .feature:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .local {
    grid-template-columns: repeat(2, 1fr);
  }
  .plans {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
  .hero-shot .phone {
    display: none;
  }
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }
  .menu,
  .head-actions .btn-login {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .head-row {
    gap: 12px;
  }
  .site-head.open .menu {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
  }
  .site-head.open .menu a {
    padding: 12px;
  }
  .head-actions .btn-demo {
    display: none;
  }
  .wrap {
    padding: 0 16px;
  }
  section {
    padding: 72px 0;
  }
  .hero {
    padding-top: 48px;
  }
  .hero-shot::before {
    inset: 40px -16px -1px;
  }
  .pains,
  .security,
  .addons,
  .showcase,
  .showcase.flip,
  .module,
  .contact-grid,
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .showcase.flip .copy {
    order: 0;
  }
  .showcase + .showcase {
    margin-top: 72px;
  }
  .form {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .features,
  .local {
    grid-template-columns: 1fr;
  }
  .feature {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .feature:last-child {
    border-bottom: 0 !important;
  }
  .brand span {
    font-size: 22px;
  }
  .lang {
    padding: 6px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.menu .menu-login {
  display: none;
}

@media (max-width: 860px) {
  .site-head.open .menu .menu-login {
    display: block;
  }
}

/* ---------- Integrations ---------- */
.integrations { scroll-margin-top: 80px; }
.int-group + .int-group { margin-top: 36px; }
.int-title { font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.int-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.int-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.15s, box-shadow 0.15s; }
.int-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 28px rgba(22, 33, 58, 0.06); }
.int-mark { flex: none; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-family: var(--sans); font-size: 21px; }
.int-mark b { font-weight: 800; }
.int-mark.logo { width: 76px; background: #fff; border: 1px solid var(--line); padding: 0 6px; }
.int-mark.logo img { width: 100%; height: auto; }
.int-card h3 { margin: 2px 0 0; font-size: 16.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.int-card h3 .soon { margin: 0; }
.int-card p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 1024px) { .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .int-grid { grid-template-columns: 1fr; } .int-card { padding: 18px; } }
.int-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .int-grid.cols-2 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Blog (/blog, /en/blog — pages rendered by the app inside site/shell)
   --------------------------------------------------------------------------- */
.blog-hero { padding: 72px 0 24px; }
.blog-hero h1 { font-size: clamp(36px, 5vw, 56px); margin-top: 14px; }
.blog-hero .lead { max-width: 680px; margin-top: 16px; font-size: 18px; color: var(--ink-2); }
.blog-list { padding: 24px 0 88px; }
.blog-empty { color: var(--muted); font-size: 17px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.15s, transform 0.15s; }
.post-card:hover { box-shadow: 0 14px 34px rgba(22, 33, 58, 0.09); transform: translateY(-2px); }
.post-card-img { display: block; aspect-ratio: 16 / 9; background: var(--sand); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-img.no-img { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy) 0%, #1e4a7a 100%); }
.post-card-img.no-img span { font-family: var(--serif); font-size: 24px; color: #fff; opacity: 0.9; padding: 0 20px; text-align: center; }
.post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.post-card h2 { font-size: 21px; line-height: 1.25; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--brand-strong); }
.post-card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.post-more { font-weight: 700; font-size: 14px; color: var(--brand-strong); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.post-tag { padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; font-size: 12px; }
.post-pager { display: flex; justify-content: space-between; margin-top: 40px; }

.post-preview-bar { padding: 10px 16px; text-align: center; background: #fdf1dc; color: #8a4b08; font-weight: 600; font-size: 14px; }
.post-head { padding-top: 56px; max-width: 820px; }
.post-back { display: inline-block; margin-bottom: 22px; font-weight: 600; font-size: 14px; color: var(--muted); }
.post-back:hover { color: var(--brand-strong); }
.post-head h1 { font-size: clamp(32px, 4.6vw, 50px); margin-top: 16px; }
.post-head .lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin-top: 18px; }
.post-author { margin-top: 14px; font-size: 14px; color: var(--muted); }
.post-cover { margin-top: 36px; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; display: block; }
.post-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: center; gap: 56px; padding-top: 40px; padding-bottom: 72px; }
.post-layout:not(:has(.post-toc)) { grid-template-columns: minmax(0, 760px); }
.post-toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.post-toc p { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.post-toc ol { margin: 0; padding: 0 0 0 18px; display: grid; gap: 8px; color: var(--muted); }
.post-toc a { color: var(--ink-2); }
.post-toc a:hover { color: var(--brand-strong); }
.post-body { font-size: 17.5px; line-height: 1.75; color: var(--ink); }
.post-body > :first-child { margin-top: 0; }
.post-body h2 { font-size: 30px; margin: 48px 0 14px; scroll-margin-top: 90px; }
.post-body h3 { font-size: 21px; margin: 32px 0 10px; scroll-margin-top: 90px; }
.post-body h4 { font-size: 18px; margin: 24px 0 8px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 24px; display: grid; gap: 8px; }
.post-body a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.post-body strong { font-weight: 700; }
.post-body code { padding: 2px 6px; border-radius: 6px; background: var(--sand); font-size: 0.9em; }
.post-body blockquote { margin: 26px 0; padding: 18px 22px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 14px 14px 0; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.post-body figure { margin: 30px 0; }
.post-body figure img, .post-body p img { width: 100%; height: auto; border-radius: 14px; display: block; }
.post-body figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.post-table { overflow-x: auto; margin: 24px 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.post-body th, .post-body td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body th { background: var(--sand); font-weight: 700; }
.post-cta { margin-top: 48px; padding: 30px 32px; border-radius: 18px; background: var(--navy); color: #fff; }
.post-cta h2 { margin: 0 0 8px; color: #fff; font-size: 26px; }
.post-cta p { color: var(--navy-text); margin: 0 0 18px; }
.post-body .post-cta a.btn { color: #fff; text-decoration: none; }
.post-body .post-cta a.btn:hover { color: #fff; }
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: minmax(0, 760px); }
  .post-toc { position: static; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .blog-hero { padding-top: 48px; }
  .post-head { padding-top: 36px; }
  .post-body { font-size: 17px; }
  .post-body h2 { font-size: 25px; }
  .post-cta { padding: 24px 22px; }
}

/* Footer language switch */
.foot-lang { display: inline-flex; align-items: center; gap: 4px; margin-top: 40px; padding: 4px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; color: var(--navy-text); font-size: 13px; font-weight: 600; }
.foot-lang svg { margin: 0 4px 0 8px; opacity: 0.8; }
.foot-lang a, .foot-lang span { padding: 6px 14px; border-radius: 999px; }
.foot-lang a { color: var(--navy-text); }
.foot-lang a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.foot-lang [aria-current] { background: rgba(255, 255, 255, 0.14); color: #fff; }
.foot-lang + .foot-bottom { margin-top: 24px; }

/* ---------------------------------------------------------------------------
   Our story (/notre-histoire, /en/our-story): creative timeline
   --------------------------------------------------------------------------- */
.story-hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.story-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 80% 30%, var(--brand-soft) 0%, transparent 70%), linear-gradient(transparent 0 calc(100% - 1px), var(--line) 0) 0 0 / 100% 48px, linear-gradient(90deg, transparent 0 calc(100% - 1px), var(--line) 0) 0 0 / 48px 100%; opacity: 0.55; mask-image: linear-gradient(180deg, #000 30%, transparent); pointer-events: none; }
.story-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.story-intro h1 { font-size: clamp(40px, 5.6vw, 66px); margin-top: 18px; }
.story-intro h1 em { font-style: italic; color: var(--brand-strong); }
.story-intro .lead { font-size: 19px; line-height: 1.65; color: var(--ink-2); margin-top: 20px; max-width: 560px; }
.story-scroll { display: inline-flex; gap: 8px; align-items: center; margin-top: 28px; font-weight: 700; color: var(--brand-strong); }
.story-scroll span { display: inline-block; animation: story-bob 1.8s ease-in-out infinite; }
@keyframes story-bob { 50% { transform: translateY(4px); } }
.story-founder { margin: 0; position: relative; justify-self: center; max-width: 460px; }
.founder-art img { display: block; width: 100%; height: auto; }
.story-founder figcaption { position: relative; margin: 6px auto 0; width: max-content; max-width: 100%; display: grid; gap: 2px; padding: 12px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(22, 33, 58, 0.12); text-align: center; font-size: 13px; color: var(--ink-2); }
.story-founder figcaption strong { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink); }
.founder-name { color: inherit; text-decoration: none; background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 2px no-repeat; transition: background-size 0.2s; }
.founder-name:hover { background-size: 100% 2px; }
.story-link { color: var(--brand-strong); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.story-link:hover { color: var(--navy); }

.story-tl-section { padding: 40px 0 96px; }
.story-tl { --p: 0; position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; }
.story-tl::before, .story-tl::after { content: ""; position: absolute; left: 50%; top: 0; width: 3px; margin-left: -1.5px; border-radius: 3px; }
.story-tl::before { bottom: 0; background: var(--line); }
.story-tl::after { height: calc(var(--p) * 100%); background: linear-gradient(180deg, var(--navy), var(--brand)); transition: height 0.15s linear; }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; padding: 34px 0; }
.tl-dot { grid-column: 2; justify-self: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); box-shadow: 0 0 0 6px var(--bg); z-index: 1; transition: transform 0.3s; }
.tl-year { font-family: var(--serif); font-size: clamp(56px, 7vw, 96px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--brand); letter-spacing: -0.03em; }
.tl-card { position: relative; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px rgba(22, 33, 58, 0.07); }
.tl-item:nth-child(odd) .tl-year { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; padding-right: 8px; }
.tl-item:nth-child(odd) .tl-card { grid-column: 3; grid-row: 1; }
.tl-item:nth-child(even) .tl-year { grid-column: 3; grid-row: 1; justify-self: start; padding-left: 8px; }
.tl-item:nth-child(even) .tl-card { grid-column: 1; grid-row: 1; }
.tl-item .tl-dot { grid-row: 1; }
.tl-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-strong); }
.tl-when { display: none; }
.tl-card h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 10px; }
.tl-card p { margin: 0; color: var(--ink-2); line-height: 1.7; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 16px 0 0; padding: 0; }
.tl-tags li { padding: 4px 10px; border-radius: 999px; background: var(--sand); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.tl-now .tl-card { background: var(--navy); border-color: var(--navy); box-shadow: 0 24px 50px rgba(17, 31, 59, 0.28); }
.tl-now .tl-card h3 { color: #fff; }
.tl-now .tl-card p { color: var(--navy-text); }
.tl-now .tl-kicker { color: #7fd0ff; }
.tl-now .tl-tags li { background: rgba(255, 255, 255, 0.1); color: #fff; }
.tl-now .tl-year { -webkit-text-stroke: 0; color: var(--brand); font-style: italic; font-size: clamp(44px, 5.4vw, 72px); }
.tl-now .tl-dot { width: 26px; height: 26px; background: var(--brand); border-color: var(--surface); box-shadow: 0 0 0 6px var(--bg), 0 0 0 10px var(--brand-soft); }
.tl-logo { width: auto; height: 20px; }
.tl-now .story-link { color: #7fd0ff; }
.tl-now .story-link:hover { color: #fff; }
.tl-when { white-space: pre; }
/* scroll reveal (only when JS runs and motion is welcome) */
.story-tl.animate .tl-item .tl-card, .story-tl.animate .tl-item .tl-year { opacity: 0; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.story-tl.animate .tl-item:nth-child(odd) .tl-card, .story-tl.animate .tl-item:nth-child(even) .tl-year { transform: translateX(40px); }
.story-tl.animate .tl-item:nth-child(even) .tl-card, .story-tl.animate .tl-item:nth-child(odd) .tl-year { transform: translateX(-40px); }
.story-tl.animate .tl-item.in .tl-card, .story-tl.animate .tl-item.in .tl-year { opacity: 1; transform: none; }
.story-tl.animate .tl-item.in .tl-dot { transform: scale(1.15); }

.story-eq { padding: 88px 0; background: var(--navy); color: #fff; }
.eq-row { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 36px); flex-wrap: wrap; }
.eq-term { display: grid; justify-items: center; gap: 6px; min-width: 150px; }
.eq-term b { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 6vw, 76px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #7fd0ff; }
.eq-term span { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-text); }
.eq-result b { color: #fff; -webkit-text-stroke: 0; font-style: italic; }
.eq-op { font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); color: #7fd0ff; opacity: 0.8; }
.story-commit { max-width: 720px; margin: 56px auto 0; text-align: center; }
.story-commit h2 { color: #fff; font-size: clamp(28px, 3.4vw, 38px); }
.story-commit p { margin: 14px 0 0; font-size: 18px; line-height: 1.7; color: var(--navy-text); }

.story-ma { padding: 88px 0 40px; }
.story-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; margin: 32px auto 0; padding: 0; max-width: 900px; }
.story-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; color: var(--ink); box-shadow: 0 6px 16px rgba(22, 33, 58, 0.05); }
.story-chips svg { color: var(--green); }
.story-cta { padding: 56px 0 104px; text-align: center; }
.story-cta h2 { font-size: clamp(30px, 4vw, 44px); }
.story-cta > .wrap > p:not(.story-credit) { margin: 12px 0 28px; font-size: 18px; color: var(--ink-2); }
.story-credit { margin-top: 36px; font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .story-hero { padding-top: 40px; }
  .story-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .story-founder { max-width: 380px; }
  .story-tl::before, .story-tl::after { left: 9px; }
  .tl-item, .tl-item:nth-child(odd), .tl-item:nth-child(even) { grid-template-columns: 20px 1fr; gap: 0 18px; padding: 18px 0; }
  .tl-item .tl-year { display: none; }
  .tl-item .tl-dot { grid-column: 1; grid-row: 1; align-self: start; margin-top: 30px; }
  .tl-item:nth-child(odd) .tl-card, .tl-item:nth-child(even) .tl-card { grid-column: 2; grid-row: 1; }
  .tl-when { display: inline; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0; text-transform: none; }
  .tl-card { padding: 20px; }
  .tl-card h3 { font-size: 22px; }
  .story-tl.animate .tl-item .tl-card { transform: translateY(24px) !important; }
  .story-tl.animate .tl-item.in .tl-card { transform: none !important; }
  .eq-term { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .story-scroll span { animation: none; }
}

/* Home headline: one sentence per line, balanced breaks */
.hero h1 .h1-s { display: block; text-wrap: balance; }

/* Legal pages and the footer legal row. */
.legal { padding: 56px 0 72px; }
.legal-wrap { max-width: 800px; }
.legal h1 { font-family: var(--serif, inherit); font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 0 0 8px; }
.legal-meta { color: var(--muted, #5d6b82); margin: 0 0 32px; font-size: 14px; }
.legal section { margin: 0 0 28px; padding: 0; }
.legal h2 { font-size: 19px; margin: 0 0 10px; }
.legal p, .legal li { line-height: 1.7; font-size: 16px; }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 8px 0 12px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--brand-strong, #0969a3); text-decoration: underline; text-underline-offset: 2px; }
.legal-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.legal-dl dt { font-weight: 700; }
.legal-dl dd { margin: 0; }
@media (max-width: 640px) { .legal-dl { grid-template-columns: 1fr; gap: 2px; } .legal-dl dd { margin-bottom: 10px; } }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 28px; padding: 0 0 8px; margin-top: 40px; font-size: 13.5px; }
.foot-legal ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.foot-legal p { margin: 0; opacity: .85; }
.foot-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.foot-legal + .foot-bottom { margin-top: 0; padding-top: 14px; }
.foot-legal p { margin-top: 18px; }

/* Cookie consent banner and the footer "Cookie settings" button. */
.cc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.cc[hidden] { display: none; }
.cc-box { pointer-events: auto; width: min(760px, 100%); background: #fff; color: #182b50; border: 1px solid #d6dde8; border-radius: 16px; box-shadow: 0 18px 50px rgba(16, 26, 48, .22); padding: 18px 20px; }
.cc-title { font-weight: 800; font-size: 16px; margin: 0 0 6px; }
.cc-text { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: #3a4a66; }
.cc-text a { color: #0969a3; text-decoration: underline; text-underline-offset: 2px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-actions .btn { flex: 1 1 140px; justify-content: center; }
.cc-panel { display: grid; gap: 10px; padding: 12px 0 14px; margin-bottom: 12px; border-top: 1px solid #e3e8f0; border-bottom: 1px solid #e3e8f0; }
.cc-panel[hidden] { display: none; }
.cc-opt { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.cc-opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: #0969a3; flex: none; }
.cc-panel .btn { justify-self: start; }
.cc-open { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@media (max-width: 520px) { .cc { left: 8px; right: 8px; bottom: 8px; } .cc-box { padding: 14px; } .cc-actions .btn { flex-basis: 100%; } }

/* Demo-request form: email confirmation modal. */
.lm { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(16, 26, 48, .55); }
.lm[hidden] { display: none; }
.lm-box { position: relative; width: min(440px, 100%); max-height: 100%; overflow: auto; background: #fff; border-radius: 18px; padding: 28px 26px 22px; box-shadow: 0 24px 70px rgba(16, 26, 48, .35); }
.lm-step[hidden] { display: none; }
.lm-box h2 { margin: 0 0 10px; font-size: 22px; padding-right: 28px; }
.lm-box p { margin: 0 0 16px; color: #3a4a66; line-height: 1.55; font-size: 15px; }
.lm-box label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 700; color: var(--ink-2, #3a4a66); margin-bottom: 14px; }
.lm-box input, .lm-box textarea { font: inherit; font-weight: 600; padding: 12px 14px; border: 1px solid var(--line-strong, #c5cfdd); border-radius: 10px; width: 100%; box-sizing: border-box; }
.lm-box input { font-size: 26px; letter-spacing: 10px; text-align: center; }
.lm-box textarea { min-height: 120px; resize: vertical; font-size: 15px; font-weight: 500; }
.lm-msg { color: #b42318 !important; font-size: 14px !important; font-weight: 600; margin: 0 0 12px !important; }
.lm-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 14px; }
.lm-link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: #0969a3; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.lm-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; background: none; font-size: 26px; line-height: 1; color: #6b7a93; cursor: pointer; border-radius: 8px; }
.lm-x:hover { background: #f1f5f9; }

/* Channel manager page: readable text blocks and the sync table */
.cm-text { max-width: 860px; }
.cm-text h2 { margin: 0 0 14px; }
.cm-text p { line-height: 1.7; }
.cm-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line, #e3eaf2); border-radius: 12px; overflow: hidden; font-size: 15px; }
.cm-table th, .cm-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line, #e3eaf2); vertical-align: top; }
.cm-table thead th { background: #f1f5f9; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #4a5a78; }
.cm-table tbody th { width: 42%; font-weight: 700; }
.cm-table tr:last-child th, .cm-table tr:last-child td { border-bottom: 0; }
.cm-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cm-links a { color: #0969a3; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
@media (max-width: 640px) { .cm-table th, .cm-table td { display: block; width: auto !important; border-bottom: 0; padding: 8px 14px; } .cm-table tr { display: block; border-bottom: 1px solid var(--line, #e3eaf2); padding: 6px 0; } .cm-table thead { display: none; } }

/* Animated channel-sync illustration (inline SVG, see sync_anim in build.py) */
.sync-anim { margin: 0; background: linear-gradient(145deg, #fff 0%, #f1f7fc 100%); border-radius: 20px; border: 1px solid rgba(17, 31, 59, 0.08); box-shadow: 0 30px 80px rgba(17, 31, 59, 0.22), 0 2px 6px rgba(17, 31, 59, 0.1); overflow: hidden; padding: 6px; }
.hero { padding-bottom: 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr); gap: 40px; align-items: center; }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -8% -6% -8% -4%; background: radial-gradient(60% 60% at 60% 50%, rgba(10, 124, 191, 0.14), transparent 70%); z-index: -1; }
.hero > .wrap > h1 { font-size: clamp(34px, 4.6vw, 56px); max-width: none; }
.hero-grid { margin-top: 8px; }
.hero-grid .hero-copy .tagline { margin-top: 10px; font-size: clamp(19px, 2vw, 26px); }
.hero-visual .sync-anim { width: 100%; }
.sync-anim-compact .sa-name { font-size: 15px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-bottom: 40px; }
}
.sync-anim svg { display: block; width: 100%; height: auto; font-family: inherit; }
.sync-anim .sa-card { fill: #fff; stroke: #dce6f0; stroke-width: 1.5; }
.sync-anim .sa-lift { filter: drop-shadow(0 6px 14px rgba(17, 31, 59, 0.08)); }
.sync-anim .sa-cell { fill: #f3f8fc; }
.sync-anim .sa-we { fill: #e9f1f8; }
.sync-anim .sa-wire { fill: none; stroke: #c5d5e6; stroke-width: 2.5; stroke-linecap: round; }
.sync-anim .sa-hub { stroke: #fff; stroke-width: 4; filter: drop-shadow(0 4px 10px rgba(17, 31, 59, 0.35)); }
.sync-anim .sa-name { font-size: 16.5px; font-weight: 700; fill: var(--ink); }
.sync-anim .sa-letter { font-size: 17px; font-weight: 800; fill: #fff; }
.sync-anim .sa-small { font-size: 14.5px; fill: var(--muted); }
.sync-anim .sa-cal { font-family: var(--serif); font-size: 18px; font-weight: 500; fill: #fff; letter-spacing: 0.01em; }
.sync-anim .sa-live-t { font-size: 12.5px; font-weight: 600; fill: rgba(255, 255, 255, 0.78); letter-spacing: 0.04em; text-transform: uppercase; }
.sync-anim .sa-day { font-size: 12.5px; font-weight: 600; fill: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.sync-anim .sa-unit { font-size: 14px; font-weight: 600; fill: var(--ink); }
.sync-anim .sa-bar { filter: drop-shadow(0 3px 6px rgba(17, 31, 59, 0.18)); }
.sync-anim .sa-bar-t { font-size: 15px; font-weight: 700; fill: #fff; }
.sync-anim .sa-pill { font-size: 14px; font-weight: 700; fill: #fff; }
.sync-anim .sa-pill-closed { fill: var(--brand-strong); }
.sync-anim .sa-ring { fill: none; stroke-width: 2.5; }
.sync-anim .sa-dot { stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 2px 5px rgba(17, 31, 59, 0.35)); }
.sync-anim .sa { opacity: 0; }
.sync-anim .sa-live circle { animation: sa-blink 2s ease-in-out infinite; }
@keyframes sa-blink { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
  .sync-anim .sa, .sync-anim .sa-live circle { animation: none !important; }
  .sync-anim .sa-dot { display: none; }
  .sync-anim .sa-pill, .sync-anim .sa-ring { display: none; }
  .sync-anim g.sa { opacity: 1; }
  .sync-anim g.sa:not(:has(.sa-bar)) { display: none; }
}

/* Hero version: one small window with four tabs taking turns (see hero_anim in build.py) */
.sync-anim-hero .sa-name { font-size: 13px; }
.sync-anim-hero .sa-st { font-size: 12px; font-weight: 600; fill: var(--muted); }
.sync-anim-hero .sa-st-idle { font-weight: 500; }
.sync-anim-hero .sa-tab { font-size: 13px; font-weight: 600; fill: rgba(255, 255, 255, 0.85); }
.sync-anim-hero .sa-tab-on { fill: rgba(255, 255, 255, 0.2); }
.sync-anim-hero .sa-day { font-size: 11.5px; }
.sync-anim-hero .sa-day-l { text-transform: none; letter-spacing: 0; font-weight: 600; }
.sync-anim-hero .sa-unit { font-size: 13px; }
.sync-anim-hero .sa-bar-t { font-size: 13px; }
.sync-anim-hero .sa-price { font-size: 13px; fill: var(--muted); font-weight: 600; }
.sync-anim-hero .sa-price-new { fill: var(--brand-strong); font-weight: 800; }
.sync-anim-hero .sa-msg { fill: #f3f8fc; }
.sync-anim-hero .sa-msg-new { fill: #e3f2fb; }
.sync-anim-hero .sa-ini { font-size: 15px; font-weight: 800; }
.sync-anim-hero .sa-mn { font-size: 14px; font-weight: 700; fill: var(--ink); }
.sync-anim-hero .sa-ms { font-size: 12.5px; fill: var(--muted); }
.sync-anim-hero .sa-tag { font-size: 12px; font-weight: 700; fill: var(--brand-strong); }
.sync-anim-hero .sa-url { font-size: 13px; fill: var(--muted); }
.sync-anim-hero .sa-date { fill: #fff; stroke: #dce6f0; stroke-width: 1.5; }
.sync-anim-hero .sa-dv { font-size: 18px; font-weight: 700; fill: var(--ink); }
.sync-anim-hero .sa-tot { font-size: 18px; font-weight: 700; fill: var(--ink); }
.sync-anim-hero .sa-btn { font-size: 16px; font-weight: 700; fill: #fff; }
.sync-anim .sa-keep { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .sync-anim-hero .sa-s2, .sync-anim-hero .sa-s3, .sync-anim-hero .sa-s4 { display: none; }
  .sync-anim-hero g.sa:not(.sa-s1):not(.sa-final), .sync-anim-hero .sa-tab-on:not(.sa-s1) { display: none; }
}

/* Segment landing pages: the hero figure builds itself piece by piece (no script); reduced motion shows it finished. */
.sync-anim .sg-in { opacity: 0; animation: sg-pop 0.6s ease-out forwards; }
@keyframes sg-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sync-anim .sg-in { opacity: 1; animation: none; } }
.seg-steps { counter-reset: s; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.seg-steps li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 16px 20px; background: #fff; border: 1px solid var(--line, #dce6f0); border-radius: 14px; align-items: baseline; }
.seg-steps b { color: var(--brand-strong, #0a7cbf); }
.seg-cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line, #dce6f0); border-radius: 14px; overflow: hidden; }
.seg-cmp th, .seg-cmp td { text-align: left; padding: 14px 18px; vertical-align: top; border-bottom: 1px solid var(--line, #dce6f0); }
.seg-cmp tr:last-child td { border-bottom: 0; }
.seg-cmp thead th { background: #f3f8fc; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.seg-cmp td:first-child { color: var(--muted); }
.seg-cmp td:last-child { font-weight: 600; }
.seg-mid { text-align: center; max-width: 720px; margin: 0 auto; }
@media (max-width: 720px) { .seg-steps li { grid-template-columns: 1fr; gap: 4px; } .seg-cmp th, .seg-cmp td { padding: 12px; } }
a.feature-link { display: block; color: inherit; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
a.feature-link:hover { border-color: var(--brand, #0a7cbf); box-shadow: 0 8px 24px rgba(17, 31, 59, 0.1); }
a.feature-link h3 svg { vertical-align: -2px; color: var(--brand-strong, #0a7cbf); }

.site-foot .foot-contact { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.site-foot .foot-contact a { display: inline-flex; align-items: center; gap: 10px; }
.site-foot .foot-contact svg { flex: none; opacity: 0.85; }
@media (max-width: 720px) { .foot-legal { justify-content: flex-start; } }

/* Glossary */
.gl-def { font-size: 19px; line-height: 1.55; max-width: 780px; }
.gl-body h2 { margin: 40px 0 12px; }
.gl-body p { margin: 0 0 14px; }
.gl-toc { background: #f3f8fc; border: 1px solid var(--line, #dce6f0); border-radius: 14px; padding: 16px 20px; margin: 0 0 28px; }
.gl-toc ol { margin: 8px 0 0; padding-left: 20px; }
.gl-toc a { color: inherit; }
.gl-legal { background: #fff8e8; border: 1px solid #f0d9a0; border-radius: 14px; padding: 14px 18px; margin: 24px 0; }
.gl-legal p { margin: 6px 0 0; }
.gl-hosteo { background: #f3f8fc; border: 1px solid var(--line, #dce6f0); border-radius: 18px; padding: 8px 26px 22px; margin-top: 44px; }
.gl-hosteo h2 { margin-top: 18px; }
.gl-dl { margin: 0; }
.gl-dl dt { font-weight: 700; margin-top: 18px; }
.gl-dl dd { margin: 4px 0 0; }
.gl-body code { background: #eef3f8; padding: 1px 6px; border-radius: 5px; }
.cm-text .cm-links + h2 { margin-top: 36px; }
