/* ---------------------------------------------------------------------------
   Shared look for the public pages: home, call demo, terms, privacy.
   Plain and readable on purpose: one font, one accent colour, sentence-case
   headings, nothing that moves unless you touch it.
   --------------------------------------------------------------------------- */
:root {
  /* trades: work-shirt navy, safety orange, on warm off-white */
  color-scheme: light;
  --bg: #f6f4ef;
  --bg-soft: #eeebe3;
  --panel: #ffffff;
  --input: #ffffff;
  --text: #1b2533;
  --text-2: #586170;
  --faint: #98a0ab;
  --line: #e0dcd2;
  --line-strong: #c9c4b8;
  --navy: #14263d;
  --head: #2f3c4b; /* top banner and footer: dark grey-blue */
  --brand: #f26b1d;
  --brand-dark: #ff7f36;
  --brand-soft: #fde9dc;
  --brand-text: #a5400a;
  --on-brand: #17202c;
  --link: #b4480c;
  --danger: #c42b1c;
  --danger-soft: #fde7e4;
  --warn: #8a5a00;
  --warn-soft: #fff2d1;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* navy sections: same parts, colours flipped */
.dark {
  color-scheme: dark;
  --bg: var(--navy);
  --bg-soft: #1a2f4b;
  --panel: #1d3453;
  --input: #16294a;
  --text: #f2f4f7;
  --text-2: #b6c0ce;
  --faint: #8090a6;
  --line: #2b4566;
  --line-strong: #3d5a7e;
  --brand-soft: rgba(242, 107, 29, 0.18);
  --brand-text: #ffb184;
  --link: #ffa56e;
  --danger: #ff8a80;
  --danger-soft: rgba(255, 138, 128, 0.16);
  background: var(--navy);
  color: var(--text);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-2); }

/* ---- header ---- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--head); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; white-space: nowrap; }
@media (max-width: 400px) { .logo { font-size: 17px; gap: 8px; } .site-head .btn-small { padding-left: 12px; padding-right: 12px; } }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: 16px; font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a.link { color: var(--text-2); text-decoration: none; font-size: 15px; }
.site-nav a.link:hover { color: var(--text); }
@media (max-width: 820px) { .site-nav a.link { display: none; } }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius); border: 1px solid var(--brand);
  background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; transition: background .15s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-light { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-light:hover { background: var(--panel); border-color: var(--text-2); }
.btn-small { padding: 9px 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---- sections ---- */
section { padding: 72px 0; scroll-margin-top: 64px; }
section.soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 36px); }
.section-head p { margin-top: 12px; color: var(--text-2); font-size: 18px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }

/* ---- small things ---- */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--brand-soft); color: var(--brand-text); }
.pill.red { background: var(--danger-soft); color: var(--danger); }
.pill.amber { background: var(--warn-soft); color: var(--warn); }
.pill.grey { background: var(--line); color: var(--text-2); }

/* ---- forms ---- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--input); font-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus,
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--text-2); }
.site-head.dark, .site-foot.dark { background: var(--head); --line: #44536a; --line-strong: #5a6a80; --panel: #3a4859; }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--text-2); text-decoration: none; }
.site-foot a:hover { color: var(--text); text-decoration: underline; }

/* ---- terms and cookies notice (notice.js) ---- */
.notice {
  position: fixed; left: 20px; bottom: 20px; z-index: 300; max-width: 440px;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20, 38, 61, .18); font-size: 14px; color: var(--text-2);
}
.notice p { margin: 0; }
.notice .btn { flex: none; }
@media (max-width: 600px) {
  .notice { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  body.notice-open .asst-launcher { display: none; }
}

/* ---- long text pages (terms, privacy) ---- */
.doc { max-width: 760px; padding-top: 40px; padding-bottom: 60px; }
.doc h1 { font-size: 34px; margin-bottom: 6px; }
.doc h2 { font-size: 21px; margin: 34px 0 8px; scroll-margin-top: 80px; }
.doc p, .doc li { color: var(--text); font-size: 16px; }
.doc p { margin: 0 0 12px; }
.doc .updated { color: var(--text-2); font-size: 14px; margin-bottom: 8px; }
.doc .banner { background: var(--warn-soft); border: 1px solid rgba(245,177,74,.35); color: var(--warn); border-radius: 10px; padding: 14px 16px; font-size: 15px; margin: 22px 0 8px; }
.doc ol.toc { columns: 2; font-size: 15px; color: var(--text-2); padding-left: 18px; }
@media (max-width: 560px) { .doc ol.toc { columns: 1; } }
.doc section { padding: 0; scroll-margin-top: 80px; }
