/* ============================================================
   MiniCats SA — v3 design system
   ------------------------------------------------------------
   One stylesheet, no framework, no external requests. Everything
   here is render-blocking-cheap by design: system font stack, no
   webfont fetch, no icon library. Core Web Vitals are a ranking
   input, and the fastest asset is the one never requested.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces — layered dark, warm rather than blue-black */
  --bg:          #0b0d10;
  --surface:     #12151a;
  --surface-2:   #181c23;
  --line:        #242a33;
  --line-soft:   #1b2027;

  /* Text */
  --text:        #e8ecf2;
  --text-muted:  #9aa5b4;
  --text-faint:  #6b7686;

  /* Brand — the orange reads as "workshop", not "startup" */
  --accent:      #ff7a18;
  --accent-hot:  #ff9542;
  --accent-dim:  rgba(255, 122, 24, 0.12);
  --accent-line: rgba(255, 122, 24, 0.32);

  /* Signals */
  --ok:          #34d399;
  --ok-dim:      rgba(52, 211, 153, 0.12);
  --warn:        #fbbf24;
  --warn-dim:    rgba(251, 191, 36, 0.10);

  /* Type scale */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Rhythm */
  --gap:      clamp(1rem, 2.5vw, 1.5rem);
  --section:  clamp(3rem, 8vw, 5.5rem);
  --radius:   14px;
  --radius-sm: 9px;

  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --maxw:   1140px;
  --readw:  68ch;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--accent-hot);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--accent);
  color: #000;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.section { padding-block: var(--section); }

.prose { max-width: var(--readw); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.18;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  font-weight: 780;
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 5.2vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); margin-top: 1.9em; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); margin-top: 1.6em; }

h2:first-child, h3:first-child { margin-top: 0; }

p { margin: 0 0 1.15em; text-wrap: pretty; }

a { color: var(--accent-hot); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.lead {
  font-size: clamp(1.06rem, 2.1vw, 1.22rem);
  color: var(--text-muted);
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  font-size: 0.735rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

code {
  font-family: var(--mono);
  font-size: 0.885em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.12em 0.42em;
  color: var(--accent-hot);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--text); }
.brand__mark { width: 26px; height: 26px; flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 550;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); }

.nav__cart {
  background: var(--accent-dim) !important;
  border: 1px solid var(--accent-line);
  color: var(--accent-hot) !important;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  width: 40px; height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    inset: 62px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gap) 1rem;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 0.8rem 0.6rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 680;
  font-size: 0.965rem;
  padding: 0.82rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
  color: #180a00;
  box-shadow: 0 10px 22px -14px rgba(255, 122, 24, 0.9);
}
.btn--primary:hover { color: #180a00; filter: brightness(1.07); }

.btn--ghost {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent-line); color: var(--text); }

.btn--block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

/* ---------- Answer block ----------
   The answer-first summary that opens every content page. Visually a
   pull-quote; structurally the passage most likely to be retrieved and
   quoted, so it is kept self-contained and free of pronouns that
   depend on surrounding text. */
.answer {
  background: linear-gradient(180deg, var(--accent-dim), transparent);
  border: 1px solid var(--accent-line);
  border-left-width: 3px;
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 0 0 2rem;
}
.answer p { margin: 0; font-size: 1.06rem; line-height: 1.6; }
.answer p + p { margin-top: 0.7rem; }
.answer__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ---------- Spec table ---------- */
.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.945rem;
  margin: 1.4rem 0;
}
.spec th, .spec td {
  text-align: left;
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.spec th {
  color: var(--text-muted);
  font-weight: 600;
  width: 42%;
  white-space: nowrap;
}
.spec td { color: var(--text); font-weight: 550; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 640;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq__body { padding: 1rem 1.2rem 0.4rem; color: var(--text-muted); }
.faq__body p:last-child { margin-bottom: 1rem; }

/* ---------- Notices ---------- */
.notice {
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  line-height: 1.6;
  border: 1px solid;
}
.notice--warn {
  background: var(--warn-dim);
  border-color: rgba(251, 191, 36, 0.3);
  color: #f8e5b8;
}
.notice--warn strong { color: var(--warn); }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  font-size: 0.855rem;
  color: var(--text-faint);
  padding-block: 1.1rem 0;
}
.crumbs ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.crumbs li + li::before { content: "/"; margin-right: 0.45rem; color: var(--line); }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
  padding-block: 3rem 2rem;
  margin-top: var(--section);
  font-size: 0.91rem;
}
.site-footer h4 {
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
  font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__bar {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  color: var(--text-faint);
  font-size: 0.845rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Product photography ---------- */
.product-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #fff;   /* the source is a white-background studio shot */
}
picture { display: block; }

/* ---------- Technical diagrams ----------
   Inlined SVG, so it inherits page colours and its <title>/<desc> stay
   readable to assistive tech and to crawlers. Wide diagrams scroll inside
   their own container rather than forcing the page sideways. */
.diagram {
  width: 100%;
  height: auto;
  display: block;
  margin: 1.6rem 0;
}
.diagram-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin: 1.8rem 0;
}
.diagram-wrap .diagram { margin: 0; min-width: 480px; }
.diagram-caption {
  font-size: 0.86rem;
  color: var(--text-faint);
  margin-top: 0.7rem;
  text-align: center;
}
