/* Fluvo site styles. Brand colours match the logo: teal #177599 / #34a6bc, gold #e5a420 / #f0c154.
   System fonts only: no font downloads, nothing third-party.
   Colour tokens first (light, then dark); layout below. */

:root {
  --bg: #ffffff;
  --wash: #eff7f9;          /* pale teal, for tinted sections */
  --surface: #ffffff;
  --text: #0f2830;
  --muted: #4a5f67;
  --border: #d6e3e8;
  --border-strong: #7f969e; /* form fields, dotted connectors */
  --brand: #177599;         /* teal, deep */
  --brand-strong: #0f5f7d;
  --brand-soft: #bfe1ea;
  --accent: #e5a420;        /* gold: decoration only, never text on white */
  --gold-ink: #7d5400;      /* gold that is readable as text */
  --gold-wash: #fdf3d7;
  --mark: #f8dc8c;          /* highlighter under the headline */
  --on-brand: #ffffff;
  --code-bg: #eef3f5;
  --bar: #d3dfe4;           /* placeholder bars in the hero figure */
  --band: #0f5f7d;
  --band-text: #ffffff;
  --band-muted: #d3e9f0;
  --danger: #b93a0a;
  --shadow: 0 1px 2px rgba(15, 40, 48, 0.05), 0 8px 24px rgba(15, 40, 48, 0.07);
  --radius: 12px;
  --wrap: 70rem;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* A blue-teal night, not black: surfaces step up clearly from the background. */
    --bg: #101e2b;
    --wash: #16293a;
    --surface: #1e3549;
    --text: #f5f9fc;
    --muted: #bccbd7;
    --border: #335068;
    --border-strong: #85a2b6;
    --brand: #66d3e6;
    --brand-strong: #a3e8f3;
    --brand-soft: #2f7a90;
    --accent: #f7cc62;
    --gold-ink: #f7cc62;
    --gold-wash: #40371a;
    --mark: #80631a;
    --on-brand: #05222c;
    --code-bg: #1b3145;
    --bar: #3f5b72;
    --band: #17566f;
    --band-text: #ffffff;
    --band-muted: #d3e6ee;
    --danger: #ffa884;
    --shadow: none;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; padding-bottom: 4.5rem; }
main:has(> .band:last-child) { padding-bottom: 0; }

a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }

code, pre { font-family: var(--mono); font-size: 0.9em; }
:not(pre) > code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 5px; }
pre {
  background: var(--code-bg);
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  overflow-x: auto;
  border: 1px solid var(--border);
  line-height: 1.5;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 1rem; z-index: 10; }

/* Header / footer */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; min-height: 4.25rem; }
.brand { color: var(--text); display: inline-flex; text-decoration: none; }
.brand:hover { color: var(--text); }
.logo { height: 2.4rem; width: auto; display: block; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.6rem; }
.site-header nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 0.6rem 0; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--brand); }
.site-header nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
.site-header nav .nav-cta { border: 1px solid var(--text); border-radius: 8px; padding: 0.4rem 0.9rem; }
.site-header nav .nav-cta:hover { border-color: var(--brand); }
.site-header nav .nav-cta[aria-current] { box-shadow: none; border-color: var(--brand); }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.92rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.footer-row p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { color: var(--muted); padding: 0.25rem 0; }
.site-footer a:hover { color: var(--brand); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.72rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }
.ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.more::after { content: " \2192"; }

/* Hero (inner pages: plain; home: with the data-flow figure) */
.hero { padding: 4rem 0 3.25rem; background: var(--wash); border-bottom: 1px solid var(--border); }
.eyebrow, .kicker {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before, .kicker::before { content: ""; width: 1.5rem; height: 2px; background: var(--accent); flex: none; }
.hero h1 { font-size: clamp(2.15rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -0.03em; max-width: 21ch; margin: 0 0 1.25rem; }
.hero h1 .mark { background: linear-gradient(transparent 64%, var(--mark) 64%, var(--mark) 94%, transparent 94%); white-space: nowrap; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 40rem; margin: 0 0 2rem; }
.install { margin: 1.5rem 0 0; color: var(--muted); }
.hero-compact { padding: 3rem 0 2.25rem; }

.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3.5rem; } }
.hero-visual { margin: 0; }
.hero-visual svg { display: block; width: 100%; height: auto; max-width: 34rem; margin: 0 auto; overflow: visible; }
.hero-visual figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; text-align: center; }

/* The data-flow figure (templates/partials/flow.html) */
.fv-card { fill: var(--surface); stroke: var(--border); }
.fv-h { fill: var(--text); font-weight: 700; font-size: 15px; }
.fv-sub { fill: var(--muted); font-size: 11.5px; }
.fv-num { fill: var(--text); font-size: 13px; font-weight: 600; }
.fv-bar { fill: var(--bar); }
.fv-bar-ok { fill: var(--brand-soft); }
.fv-rule { stroke: var(--border); }
.fv-warn { fill: var(--accent); }
.fv-hold { fill: none; stroke: var(--accent); stroke-dasharray: 3 3; }
.fv-node { fill: var(--brand); }
.fv-node-t { fill: var(--on-brand); font-weight: 700; font-size: 13px; text-anchor: middle; }
.fv-node-rule { stroke: var(--on-brand); opacity: 0.35; }
.fv-line { stroke: var(--border-strong); stroke-dasharray: 1 5; stroke-linecap: round; stroke-width: 1.5; }
.fv-chip { fill: var(--border-strong); transform: translateX(14px); }
.fv-chip-ok { fill: var(--brand); transform: translateX(14px); }
.fv-chip-bad { fill: var(--accent); transform: translateY(12px); }
.fv-tick { stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fv-done { fill: var(--brand); }
.fv-done-tick { stroke: var(--on-brand); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fv-seg, .fv-pop { transform-box: fill-box; }
.fv-seg { transform-origin: left center; }
.fv-pop { transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .fv [style*="--d"] { animation-duration: 12s; animation-iteration-count: infinite; animation-fill-mode: backwards; animation-delay: var(--d); }
  .fv-chip { animation-name: fv-in; animation-timing-function: linear; }
  .fv-chip-ok { animation-name: fv-out; animation-timing-function: linear; }
  .fv-chip-bad { animation-name: fv-drop; animation-timing-function: ease-in; }
  .fv-row { animation-name: fv-row; }
  .fv-seg { animation-name: fv-seg; animation-timing-function: ease-out; }
  .fv-late { animation-name: fv-late; }
  .fv-pop { animation-name: fv-pop; }
}
@keyframes fv-in {
  0% { opacity: 0; transform: translateX(0); }
  2% { opacity: 1; }
  7% { opacity: 1; transform: translateX(28px); }
  8%, 100% { opacity: 0; transform: translateX(28px); }
}
@keyframes fv-out {
  0%, 9% { opacity: 0; transform: translateX(0); }
  10% { opacity: 1; }
  15% { opacity: 1; transform: translateX(28px); }
  16%, 100% { opacity: 0; transform: translateX(28px); }
}
@keyframes fv-drop {
  0%, 9% { opacity: 0; transform: translateY(0); }
  10% { opacity: 1; }
  16% { opacity: 1; transform: translateY(28px); }
  18%, 100% { opacity: 0; transform: translateY(28px); }
}
@keyframes fv-row { 0%, 15% { opacity: 0; } 18%, 76% { opacity: 1; } 79%, 100% { opacity: 0; } }
@keyframes fv-seg {
  0%, 14% { transform: scaleX(0); opacity: 1; }
  40%, 94% { transform: scaleX(1); opacity: 1; }
  99%, 100% { transform: scaleX(1); opacity: 0; }
}
@keyframes fv-late { 0%, 34% { opacity: 0; } 37%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes fv-pop {
  0%, 40% { opacity: 0; transform: scale(0.5); }
  43% { opacity: 1; transform: scale(1.15); }
  46%, 94% { opacity: 1; transform: scale(1); }
  99%, 100% { opacity: 0; transform: scale(1); }
}

/* Facts strip under the home hero */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem 2rem; margin: 0; padding: 2.25rem 0; border-bottom: 1px solid var(--border); }
.facts div { display: grid; grid-template-columns: auto 1fr; column-gap: 0.9rem; align-content: start; }
.facts .ico { grid-row: span 2; color: var(--brand); width: 2.6rem; height: 2.6rem; padding: 0.55rem; background: var(--wash); border: 1px solid var(--border); border-radius: 10px; }
.facts dt { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.3; }
.facts dd { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

/* Icons (templates/partials/icon.html) */
.ico { flex: none; display: block; }
.ico-box { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--wash); border: 1px solid var(--border); color: var(--brand); }
.section-tint .ico-box { background: var(--surface); }

/* Sections */
.section { padding-top: 4.5rem; }
.section-tint { background: var(--wash); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4.5rem 0; margin-top: 4.5rem; }
.section-tint + .section-tint { margin-top: 0; border-top: 0; }
.section h2, .section-tint h2, .block > h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 1rem; max-width: 26ch; }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 42rem; margin: 0 0 2.25rem; }
.block { padding-top: 3.5rem; }
.block > h2 { margin-bottom: 1.5rem; }

/* Heading left, text right */
.statement { display: grid; gap: 1rem 4rem; }
@media (min-width: 56rem) { .statement { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .statement .kicker { grid-column: 1 / -1; margin-bottom: 0; } }
.statement h2 { margin: 0; }
.statement > div p { margin: 0 0 1rem; color: var(--muted); font-size: 1.1rem; }
.statement > div > :last-child { margin-bottom: 0; }

.prose { max-width: 46rem; }
article.prose { padding-top: 3.5rem; }
.prose h2 { font-size: 1.75rem; margin: 0 0 1rem; }
.prose h1 { font-size: 2.4rem; margin: 0 0 1.5rem; }
.prose > h2:first-child { margin-top: 0; }
.prose h2:not(:first-child) { margin-top: 2.5rem; }
.prose .kicker + h2 { margin-top: 0; }

/* Who does what: two ledgers side by side */
.duo { display: grid; gap: 2rem 0; }
@media (min-width: 52rem) {
  .duo { grid-template-columns: 1fr 1fr; }
  .duo-col:first-child { padding-right: 3rem; border-right: 1px solid var(--border); }
  .duo-col:last-child { padding-left: 3rem; }
}
.duo-col h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.2rem; margin: 0 0 0.75rem; }
.duo-col h3::before { content: ""; width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid var(--text); flex: none; }
.duo-us h3::before { background: var(--brand); border-color: var(--brand); }
.duo-col ul { list-style: none; margin: 0; padding: 0; }
.duo-col li { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.8rem 0; border-top: 1px solid var(--border); }
.duo-col li .ico { color: var(--muted); margin-top: 0.05rem; }
.duo-us li .ico { color: var(--brand); }
.duo-col li strong { display: block; }
.duo-col li span { display: block; color: var(--muted); font-size: 0.98rem; margin-top: 0.15rem; }
.client-line { font-size: 1.2rem; font-weight: 600; margin: 2.5rem 0 0; max-width: 40rem; }
.engagement { margin: 0.6rem 0 0; max-width: 46rem; color: var(--muted); font-size: 1.05rem; }

.promise { margin: 2.5rem 0 0; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 4px solid var(--accent); max-width: 46rem; }
.promise h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
.promise p { margin: 0; font-size: 1.1rem; color: var(--muted); }
.promise p + p { margin-top: 0.75rem; font-size: 1rem; }

/* Panels and cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: 0.75rem; }

.services { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.service { display: flex; flex-direction: column; padding: 1.75rem; }
.service h3 { font-size: 1.45rem; margin: 0 0 0.5rem; }
.service > p { color: var(--muted); }
.service .checks { margin-bottom: 1.5rem; }
.service-foot { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.service-price { font-weight: 700; color: var(--text) !important; margin: 0 0 0.9rem !important; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gold-ink) !important; background: var(--gold-wash); border-radius: 4px; padding: 0.15rem 0.5rem; margin: 0 0 0.75rem !important;
}
.checks { list-style: none; padding: 0; margin: 1rem 0 0; }
.checks li { position: relative; padding-left: 1.7rem; margin: 0.5rem 0; }
.checks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.48em; width: 0.7rem; height: 0.38rem; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }

/* History: one row per option (the owner's section on the home page) */
/* Problem: text left, a sample reconciliation report right */
.problem { display: grid; gap: 2.5rem 4rem; align-items: center; }
@media (min-width: 56rem) { .problem { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.problem-text > p { color: var(--muted); font-size: 1.1rem; margin: 0 0 1rem; }
.problem-text > p:last-child { margin-bottom: 0; }
.problem-text > .kicker { font-size: 0.8rem; color: var(--brand); }
.report { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.5rem 1.1rem; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0 0 0.75rem; }
.report-head .tag { margin: 0 !important; }
.report table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.report th, .report td { padding: 0.6rem 0; border-top: 1px solid var(--border); text-align: right; font-family: var(--mono); font-size: 0.95rem; }
.report thead th { border-top: 0; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: 0; }
.report th:first-child { text-align: left; }
.report tbody th { font-family: inherit; font-weight: 600; font-size: 1rem; }
.report .ok { color: var(--brand); font-weight: 700; }
.report .bad { color: var(--gold-ink); font-weight: 700; }
.report .zero { color: var(--muted); }
.report-foot { display: flex; align-items: center; gap: 0.5rem; margin: 0; padding-top: 0.85rem; border-top: 1px solid var(--border); font-size: 0.95rem; color: var(--muted); }
.report-foot .ico { color: var(--brand); width: 1.25rem; height: 1.25rem; }

/* History: the archive as the base, then a scale of how much history goes into Odoo */
.history-body { max-width: 46rem; }
@media (min-width: 62rem) { .history-body { max-width: none; columns: 2; column-gap: 4rem; } .history-body p { break-inside: avoid; margin-top: 0; } }
.scale { margin-top: 2rem; }
.scale-base { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.scale h3 { font-size: 1.2rem; margin: 0 0 0.3rem; }
.scale p:not(.tag):not(.scale-label) { margin: 0; color: var(--muted); }
.scale .tag { margin-bottom: 0.4rem !important; }
.scale-label { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 2rem 0 0.75rem; display: flex; align-items: center; gap: 0.75rem; }
.scale-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.scale-stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.scale-stops li { padding: 1.25rem 1.5rem 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.scale-stops li.pick { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.meter { display: block; height: 8px; border-radius: 4px; background: var(--bar); margin-bottom: 1rem; overflow: hidden; }
.meter span { display: block; height: 100%; width: 12%; border-radius: 4px; background: var(--brand); transform-origin: left; }
.scale-stops li:nth-child(2) .meter span { width: 45%; }
.scale-stops li:nth-child(3) .meter span { width: 100%; }

.service-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.service-head .tag { margin: 0 !important; }

/* Migration types (/migration-types/) */
.type-nav { list-style: none; margin: 2.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.type-nav a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem 0.45rem 0.7rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.type-nav a:hover { border-color: var(--brand); color: var(--brand); }
.type-nav .ico { width: 1.2rem; height: 1.2rem; color: var(--brand); }
.type { display: grid; gap: 2rem 4rem; align-items: start; scroll-margin-top: 1rem; }
.type + .type { margin-top: 4.5rem; position: relative; }
.type + .type::before { content: ""; position: absolute; top: 0; left: 1rem; right: 1rem; border-top: 1px solid var(--border); }
@media (min-width: 40rem) { .type + .type::before { left: 2rem; right: 2rem; } }
@media (max-width: 40rem) { .type-side figure { padding: 0.75rem; } .type + .type { margin-top: 3.25rem; } }
@media (min-width: 58rem) {
  .type { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .type:nth-of-type(odd) .type-side { order: -1; }
}
.type-text .tag { margin-bottom: 0.9rem !important; }
.type-text dl { margin: 1.5rem 0 0; }
.type-text dt { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); margin-top: 1.25rem; }
.type-text dd { margin: 0.3rem 0 0; color: var(--muted); font-size: 1.05rem; }
.type-side figure { margin: 0; padding: 1.5rem; background: var(--wash); border: 1px solid var(--border); border-radius: var(--radius); }
.type-fig { display: block; width: 100%; height: auto; }
.fv-small { font-size: 12.5px; }
.fv-stage { stroke: var(--accent); stroke-width: 1.5; }
.fv-gold { stroke: var(--gold-ink); }
.type-sources { margin: 1.25rem 0 0.6rem; color: var(--muted); font-size: 0.95rem; }
.type-side .chips { margin-bottom: 0; }
.type-side .chips li { font-size: 0.92rem; padding: 0.25rem 0.8rem; }
.type-note { margin: 1.25rem 0; padding: 0.9rem 1.2rem; background: var(--gold-wash); border-radius: var(--radius); }
.type-note p { margin: 0 !important; color: var(--text) !important; font-size: 1rem !important; }
.feature .ico-box { margin-bottom: 0.9rem; }
.tool-also { color: var(--muted); max-width: 52rem; }
.tool-also a { font-weight: 600; margin-left: 0.4rem; }

/* Open-source tools */
.tools { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.tool { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tool p { margin: 0 0 1rem; color: var(--muted); }
.tool-head { display: flex; align-items: center; gap: 0.9rem; }
.tool-head > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.3; font-size: 0.95rem; }
.tool-head strong { color: var(--text); font-size: 1.3rem; letter-spacing: -0.01em; }
.tool-head .tag { margin: 0 !important; }
.tool-stat { padding: 0.75rem 1rem; background: var(--wash); border-radius: 8px; font-size: 0.95rem; }
.tool-stat strong { color: var(--text); font-family: var(--mono); font-size: 1.15rem; margin-right: 0.25rem; }
.tool-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.25rem; font-weight: 600; }
.tool .tool-links { margin: auto 0 0; }
.tool-links code { font-weight: 400; }

/* Reveal: only when the script in base.html has added "io" (JavaScript on, motion allowed) */
.io [data-reveal] .rv { transition: opacity 0.5s ease, transform 0.5s ease; transition-delay: calc(var(--i, 0) * 0.12s); }
.io [data-reveal]:not(.in) .rv { opacity: 0; transform: translateY(10px); }
.io .steps li::after { transition: transform 0.45s linear; transition-delay: calc(var(--i, 0) * 0.45s); }
.io .steps:not(.in) li::after { transform: scaleX(0); }
.io .steps li.rv { transition-delay: calc(var(--i, 0) * 0.45s); }
.io .meter span { transition: transform 0.9s ease-out; transition-delay: calc(var(--i, 0) * 0.15s + 0.2s); }
.io .scale:not(.in) .meter span { transform: scaleX(0); }

.history-note { margin-top: 2rem; padding: 1.1rem 1.4rem; background: var(--gold-wash); border-radius: var(--radius); max-width: 46rem; }
.history-note p { margin: 0; color: var(--text); }

/* Steps: a numbered line */
/* Steps: a pipeline. The line of each step fills when the list scrolls into view. */
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 2.75rem 0; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; position: relative; border-top: 2px solid var(--border); padding: 2rem 1.5rem 0 0; }
.steps li::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--brand); transform-origin: left; }
.step-ico { position: absolute; z-index: 1; top: -1.3rem; left: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; box-shadow: 0 0 0 5px var(--bg); }
.step-ico .ico { width: 1.35rem; height: 1.35rem; }
.section-tint .step-ico { box-shadow: 0 0 0 5px var(--wash); }
.steps h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.steps h3::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--brand); margin-bottom: 0.2rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.steps-wide { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.after { margin: 2rem 0 0; }

/* Plain two-column lists (what's hard about Odoo, contract options) */
.pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.pairs li { padding: 1.4rem 0; border-top: 1px solid var(--border); }
.pairs h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.pairs p { margin: 0; color: var(--muted); }
.pairs .tag { margin-bottom: 0.5rem !important; }

.chips { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips li { border: 1px solid var(--border-strong); border-radius: 999px; padding: 0.35rem 0.95rem; font-weight: 600; background: var(--surface); }

.split { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.split h2 { font-size: 1.35rem; margin: 0 0 0.5rem; }
.split p { color: var(--muted); }
.split p:last-child { margin-bottom: 0; }

/* FAQ: <details>, no JavaScript */
.faq { max-width: 50rem; border-bottom: 1px solid var(--border); }
.faq details { border-top: 1px solid var(--border); }
.faq + .faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.1rem 0; font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.3rem; line-height: 1; color: var(--brand); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--brand); }
.faq-a { padding: 0 2.5rem 1.25rem 0; color: var(--muted); }
.faq-a p { margin: 0 0 0.75rem; }
.faq-a > :last-child { margin-bottom: 0; }
.faq-a ul, .faq-a ol { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.faq-a li { margin: 0.35rem 0; }
.faq-a strong { color: var(--text); }

/* Closing call to action */
.band { margin-top: 4.5rem; background: var(--band); color: var(--band-text); }
.section-tint + .band { margin-top: 0; }
.band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-top: 3rem; padding-bottom: 3rem; }
.band h2 { margin: 0 0 0.4rem; font-size: 1.7rem; }
.band p { margin: 0; color: var(--band-muted); max-width: 38rem; }
.band a:not(.btn) { color: var(--band-text); }
.band .btn-primary { background: #f0c154; border-color: #f0c154; color: #201600; }
.band .btn-primary:hover { background: #f6d27a; border-color: #f6d27a; color: #201600; }

.notfound { padding: 5rem 0 3rem; }

.prose h3 { margin: 2rem 0 0.5rem; font-size: 1.2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.4rem 0; }

@media (max-width: 40rem) {
  .hero { padding: 2.5rem 0 2.25rem; }
  .logo { height: 2.1rem; }
  /* Phone header: logo and Contact on the first row, the other links on the second. */
  .header-row { padding-top: 0.6rem; padding-bottom: 0.2rem; gap: 0.25rem 0.75rem; justify-content: space-between; }
  .site-header nav { display: contents; }
  .brand { flex: 1 0 calc(100% - 8rem); }
  .site-header nav a { font-size: 0.9rem; order: 2; }
  .site-header nav .nav-cta { order: 1; padding: 0.3rem 0.8rem; }
  .section { padding-top: 3.25rem; }
  .section-tint { padding: 3.25rem 0; margin-top: 3.25rem; }
  .band { margin-top: 3.25rem; }
  .faq-a { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Pricing */
.package h2, .package h3 { font-size: 1.35rem; margin: 0 0 0.25rem; }
.package { display: flex; flex-direction: column; align-items: flex-start; }
.package .fineprint { margin-bottom: 1rem; }
.package .btn { margin-top: auto; }
.package > p:not(.fineprint):not(.price) { margin: 0 0 1rem; }
.price { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text) !important; margin: 0.25rem 0 0.75rem !important; }
.price span { font-size: 0.9rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.fineprint { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; }
a > code { color: var(--brand-strong); }

/* Order and contact forms */
.order-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: 2.5rem; }
@media (min-width: 60rem) { .order-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .order-next { position: sticky; top: 1.5rem; } }
.order-form > .fineprint { margin-top: 0; }
.order-form fieldset { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin: 0 0 1.25rem; padding: 1.1rem 1.4rem 1.4rem; display: grid; gap: 0.9rem 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); min-width: 0; }
.order-form legend { font-weight: 700; padding: 0 0.4rem; }
.order-form fieldset > .fineprint, .order-form .packages { grid-column: 1 / -1; margin: 0; }
.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 0.95rem; }
.order-form input:not([type=radio]):not([type=checkbox]), .order-form select, .order-form textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 8px; padding: 0.55rem 0.7rem; width: 100%;
}
.order-form ::placeholder { color: var(--muted); opacity: 0.85; }
.order-form input:focus-visible, .order-form select:focus-visible, .order-form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.order-form input:user-invalid, .order-form textarea:user-invalid { border-color: var(--danger); }
.packages { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.package-option { display: flex; gap: 0.7rem; align-items: flex-start; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 0.85rem 1rem; cursor: pointer; background: var(--bg); }
.package-option:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--wash); }
.package-option input { margin-top: 0.3rem; accent-color: var(--brand); }
.package-option small { color: var(--muted); }
.pkg-price { color: var(--brand); font-weight: 700; margin-left: 0.25rem; }
.terms { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.5rem 0 1rem; }
.terms input { margin-top: 0.35rem; accent-color: var(--brand); }
.cf-turnstile { margin: 0 0 1rem; min-height: 65px; }
.order-form button { font: inherit; font-weight: 600; cursor: pointer; }
.form-error { border: 1px solid var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-radius: var(--radius); padding: 0.75rem 1rem; margin: 0 0 1rem; }
.order-next { background: var(--wash); box-shadow: none; }
.order-next h2 { font-size: 1.2rem; margin: 0 0 0.75rem; }
.order-next ol { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.order-next li { margin: 0.5rem 0; }
.order-next.prose h2 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }
.order-next.prose h2:first-child { margin-top: 0; }
.order-next.prose ul { padding-left: 1.2rem; margin: 0; color: var(--muted); }
.form-sent { margin-bottom: 1rem; }
.form-sent h2 { font-size: 1.35rem; margin: 0 0 0.5rem; }
.install-more { color: var(--muted); font-size: 0.95rem; margin: 0.5rem 0 0; }
