/* MAP
 * §0 direction      the visual brief for this site
 * §1 tokens         light, dark (system), dark (forced)
 * §2 base           reset, type, links, focus, layout helpers
 * §3 header         wordmark, navigation, theme toggle, mobile menu
 * §4 buttons/forms  buttons, fields, the order form panel
 * §5 footer
 * §6 motion         durations, reveal, reduced motion
 */

/* §0 direction
 * [directii 10764-C] adapted to the brief: deep green ink on cream (dark: cream on very deep green), one quiet gold accent.
 * Axes kept: action dominates the first screen (order form beside the headline), unequal magazine columns,
 * ornament of hairlines, frames and large numerals. Serif headings, system sans text, slightly rounded corners.
 * Why: a sceptical British buyer of professional services trusts a document that looks like a well-set report, not an advert.
 */

/* §1 tokens */
:root {
  color-scheme: light;
  --bg: #f3eee2;
  --surface: #f8f4ea;
  --surface-2: #e9e2d0;
  --border: #7d8577;
  --hairline: #c9c0aa;
  --border-strong: #1a3328;
  --text: #1a3328;
  --text-2: #33493e;
  --text-3: #56665c;
  --accent: #1d4a36;
  --accent-hover: #143726;
  --on-accent: #f6f1e4;
  --accent-soft: #e2e6d6;
  --gold: #7a5a14;
  --gold-soft: #ece1c4;
  --band: #183026;
  --on-band: #efe8d6;
  --on-band-2: #c9c4b0;
  --band-border: #5f7567;
  --sev-critical: #9a3a20;
  --sev-high: #8a5a0a;
  --sev-medium: #2f5d73;
  --sev-low: #56665c;
  --danger: #9a3a20;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --radius: 4px;
  --wrap: 1180px;
  --t-fast: 160ms;
  --t-slow: 420ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #12211a;
    --surface: #192d23;
    --surface-2: #0e1a14;
    --border: #687c6f;
    --hairline: #34493d;
    --border-strong: #ece5d2;
    --text: #ece5d2;
    --text-2: #cdc7b3;
    --text-3: #a9a795;
    --accent: #e4d3a0;
    --accent-hover: #f0e2b8;
    --on-accent: #12211a;
    --accent-soft: #22382d;
    --gold: #d8bb6c;
    --gold-soft: #2b3a2a;
    --band: #1d3329;
    --on-band: #ece5d2;
    --on-band-2: #c3bea9;
    --band-border: #687c6f;
    --sev-critical: #ec9c7e;
    --sev-high: #e2bb62;
    --sev-medium: #8fc0d6;
    --sev-low: #b3b29f;
    --danger: #ec9c7e;
  }
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12211a;
  --surface: #192d23;
  --surface-2: #0e1a14;
  --border: #687c6f;
  --hairline: #34493d;
  --border-strong: #ece5d2;
  --text: #ece5d2;
  --text-2: #cdc7b3;
  --text-3: #a9a795;
  --accent: #e4d3a0;
  --accent-hover: #f0e2b8;
  --on-accent: #12211a;
  --accent-soft: #22382d;
  --gold: #d8bb6c;
  --gold-soft: #2b3a2a;
  --band: #1d3329;
  --on-band: #ece5d2;
  --on-band-2: #c3bea9;
  --band-border: #687c6f;
  --sev-critical: #ec9c7e;
  --sev-high: #e2bb62;
  --sev-medium: #8fc0d6;
  --sev-low: #b3b29f;
  --danger: #ec9c7e;
}

/* §2 base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--text); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.55rem); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.35rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--text); text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 3px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.kicker {
  font: 600 .78rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-3); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* §3 header */
/* Black Friday offer (Augustin, 2026-11-12): a bar on every page plus one tag style. The bar is dark in both themes, like the closing band. */
.bf-tag { display: inline-block; background: var(--gold); color: var(--bg); font: 700 .7rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 2px; margin-right: 6px; vertical-align: .12em; white-space: nowrap; }
.offer-bar .bf-tag { background: #d8bb6c; color: #12211a; margin-right: 0; }
.offer-bar { background: var(--band); color: var(--on-band); border-bottom: 1px solid var(--band-border); font-size: .95rem; line-height: 1.4; }
.offer-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 0 28px; flex-wrap: wrap; min-height: 48px; }
.offer-bar p { margin: 0; padding: 8px 0; display: flex; align-items: center; justify-content: center; gap: 4px 12px; flex-wrap: wrap; }
.offer-bar b { font: 400 1.3rem/1 var(--serif); color: #f0e2b8; font-variant-numeric: lining-nums; }
.offer-bar s, .offer-bar-until { color: var(--on-band-2); }
.offer-bar a { color: var(--on-band); font-weight: 600; text-decoration-color: #d8bb6c; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 640px) {
  .offer-bar { font-size: .88rem; }
  .offer-bar .wrap { min-height: 0; }
  .offer-bar a { display: none; }
}
@media (max-width: 420px) { .offer-bar-what { display: none; } }

.site-header { border-bottom: 1px solid var(--hairline); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); padding: 6px 0; }
.brand svg { width: 34px; height: 34px; flex: none; color: var(--text); }
.brand svg .tick { stroke: var(--gold); }
.brand-name { font: 400 1.45rem/1 var(--serif); letter-spacing: .01em; display: block; }
.brand-sub { font: 500 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); display: block; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--text-2); padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); border-bottom-color: var(--hairline); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }
.nav .nav-login { font-size: .92rem; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius);
  font: 500 .9rem var(--sans); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.menu-btn { display: none; }
@media (max-width: 900px) {
  .js .menu-btn { display: inline-flex; }
  .js .nav { order: 3; display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 16px; border-top: 1px solid var(--hairline); }
  .js .nav.is-open { display: flex; }
  .nav a { border-bottom: 1px solid var(--hairline); }
  .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  .site-header .wrap { min-height: 64px; flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 480px) {
  .brand { gap: 10px; }
  .brand svg { width: 30px; height: 30px; }
  .brand-name { font-size: 1.3rem; }
  .brand-sub { font-size: .6rem; letter-spacing: .08em; }
  .menu-btn { padding: 0 8px; }
}
@media (max-width: 360px) { .brand-sub { display: none; } }

/* §4 buttons/forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent); border-radius: var(--radius);
  font: 600 1rem/1.25 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--border); }
.btn-quiet:hover { background: var(--surface-2); }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); padding: 10px 0 2px; display: inline-block; }
.link-arrow:hover { border-bottom-width: 2px; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font: 600 .92rem/1.3 var(--sans); color: var(--text); }
.field .hint { font-size: .85rem; color: var(--text-3); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1.05rem/1.3 var(--sans); color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  max-width: 100%;
}
select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
input:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--border-strong); }
input::placeholder { color: var(--text-3); opacity: 1; }
.field-error { color: var(--danger); font-size: .9rem; font-weight: 600; margin: 0; }
.field-error[hidden] { display: none; }
input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }

/* The order panel is framed twice (outer hairline, inner rule) like a form in a printed document. */
.order-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  outline: 1px solid var(--hairline);
  outline-offset: 5px;
  border-radius: var(--radius);
  padding: 28px;
}
.order-panel h2, .order-panel .panel-title { font: 400 1.5rem/1.2 var(--serif); margin: 0 0 6px; }
.order-panel .panel-sub { color: var(--text-2); font-size: .95rem; margin-bottom: 20px; }
/* The offer sits above the fields so the price is read before the form is filled. */
.offer { margin: 12px 0 14px; padding: 12px 16px 14px; background: var(--gold-soft); border: 1px solid var(--hairline); border-left: 3px solid var(--gold); border-radius: var(--radius); }
.offer p { margin: 0; }
.offer-head { font: 600 .9rem/1.4 var(--sans); color: var(--text); }
.offer-price { margin-top: 6px; display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.offer-price b { font: 400 2.9rem/1 var(--serif); color: var(--text); font-variant-numeric: lining-nums; }
.offer-price s { font: 400 1.35rem/1 var(--serif); color: var(--text-3); text-decoration-thickness: 2px; text-decoration-color: var(--sev-critical); }
.offer-price small { font: 500 .95rem var(--sans); color: var(--text-2); }
@media (max-width: 420px) { .offer-head .bf-tag { display: table; margin: 0 0 6px; } }
.order-panel .btn { width: 100%; }
.order-notes { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--hairline); display: grid; gap: 6px; font-size: .9rem; color: var(--text-2); }
.order-notes li { display: flex; gap: 10px; align-items: baseline; }
.order-notes li::before { content: ""; flex: none; width: 8px; height: 1px; background: var(--gold); transform: translateY(-4px); }
@media (max-width: 640px) { .order-panel { padding: 20px 16px; outline-offset: 3px; } }

.inline-order { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-order .field { flex: 1 1 220px; margin: 0; }
.inline-order .btn { flex: 0 0 auto; }
.inline-order .field-error { flex-basis: 100%; }

/* §5 footer */
.site-footer { margin-top: 0; background: var(--surface-2); border-top: 1px solid var(--hairline); color: var(--text-2); font-size: .92rem; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-grid a { color: var(--text-2); display: inline-block; padding: 6px 0; min-height: 32px; }
.footer-company p { margin-bottom: 8px; }
.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-3); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-company { grid-column: 1 / -1; } }

/* §6 motion: calm and exact; things settle into place, nothing bounces. */
/* Only blocks that start below the fold are hidden (site.js adds .pending), so nothing visible on load ever fades. */
.reveal { transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.reveal.pending { opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .reveal.pending { opacity: 1; transform: none; }
}
