/* ==========================================================================
   SLOPECUT — Field Machine design system
   Theme derived from theme-factory "Forest Canopy", re-cut to the MAGNUS machine
   livery: pine-green structure, chartreuse (#82BC00) accent sampled from the
   product's own paintwork, steel hairlines on cool bone paper.
   Typography: Archivo (display) / IBM Plex Sans (body) / IBM Plex Mono (data)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #f1f2ec;
  --paper-2: #e8eae3;
  --paper-3: #dfe2da;
  --ink: #1b2420;
  --ink-soft: #4a5750;
  --ink-faint: #77837b;
  --pine: #23453a;
  --pine-deep: #16302a;
  --pine-tint: #d9e2dc;
  --accent: #82bc00;
  --accent-ink: #4f7000;
  --accent-tint: #e6efc9;
  --steel: #d5d9d2;
  --steel-dark: #b9bfb6;
  --white: #ffffff;
  --danger: #a8452b;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.35rem, 1.9vw, 1.6rem);
  --step-3: clamp(1.75rem, 2.9vw, 2.35rem);
  --step-4: clamp(2.15rem, 4vw, 3.25rem);
  --step-5: clamp(2.35rem, 4.4vw, 3.75rem);

  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --measure: 68ch;
  --radius: 2px;
  --shadow-flat: 0 1px 0 var(--steel);
  --ring: 0 0 0 3px rgba(130, 188, 0, 0.42);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); font-weight: 800; line-height: 0.96; letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); letter-spacing: -0.015em; line-height: 1.15; }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
ul, ol { margin: 0 0 1.2em; padding-left: 1.15em; max-width: var(--measure); }
li { margin-bottom: 0.45em; }
li::marker { color: var(--accent-ink); }

strong { font-weight: 600; color: var(--pine-deep); }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--accent-tint); color: var(--ink); }

/* ---------- 3. Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.section--paper2 { background: var(--paper-2); }
.section--pine { background: var(--pine); color: var(--paper); }
.section--pine h2, .section--pine h3 { color: var(--paper); }
.section--pine p { color: #d3ddd6; }
.section--pine a { color: var(--accent-tint); }

.rule { height: 1px; background: var(--steel); border: 0; margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .split--7-5 { grid-template-columns: 7fr 5fr; }
  .split--5-7 { grid-template-columns: 5fr 7fr; }
  .split--4-8 { grid-template-columns: 4fr 8fr; }
}

.stack > * + * { margin-top: 1rem; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(241, 242, 236, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--steel);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  color: var(--pine-deep);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--pine-deep); }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-top: -2px;
}

.nav { display: none; }
@media (min-width: 940px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 1.55rem;
    margin-left: auto;
  }
}

.nav a {
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav a:hover { color: var(--pine); border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { color: var(--pine); border-bottom-color: var(--pine); }

.header-cta { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 940px) { .header-cta { margin-left: 0.5rem; } }

/* Below 600px the sticky bottom bar carries the primary action,
   so the header keeps only the menu toggle. */
@media (max-width: 599px) {
  .header-cta > .btn { display: none; }
}

.header-phone {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  text-decoration: none;
}
@media (min-width: 1080px) { .header-phone { display: block; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid var(--steel-dark);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pine-deep);
  cursor: pointer;
}
.nav-toggle svg { width: 16px; height: 16px; }
@media (min-width: 940px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--steel);
  background: var(--paper);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.5rem var(--gutter) 1.25rem; max-width: none; }
.mobile-nav li { margin: 0; border-bottom: 1px solid var(--steel); }
.mobile-nav li:last-child { border-bottom: 0; }
.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--pine); }
@media (min-width: 940px) { .mobile-nav, .mobile-nav.is-open { display: none; } }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary { background: var(--pine); color: var(--paper); }
.btn--primary:hover { background: var(--pine-deep); color: var(--paper); }

.btn--accent { background: var(--accent); color: #16200a; }
.btn--accent:hover { background: var(--accent-ink); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--pine-deep);
  border-color: var(--steel-dark);
}
.btn--ghost:hover { border-color: var(--pine); color: var(--pine); background: var(--white); }

.btn--sm { padding: 0.6rem 0.95rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

.link-arrow {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--pine);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.link-arrow:hover { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 5vw, 4.25rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--steel);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(35, 69, 58, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(35, 69, 58, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 78% 10%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 3vw, 3.25rem); }
}

.hero-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--pine);
  background: var(--pine-tint);
  border: 1px solid #c3d0c8;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
  line-height: 1.5;
}
.hero-kicker > * { white-space: nowrap; }
.hero-kicker b { font-weight: 600; }
.hero-kicker i { font-style: normal; color: #96a79d; }
.hero-kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}

.hero h1 { margin-bottom: 1rem; }
.hero h1 em {
  font-style: normal;
  color: var(--pine);
}

.hero-lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.9rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.6rem; }

.hero-microtrust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--steel);
  padding-top: 1.1rem;
  margin: 0;
  max-width: none;
}
.hero-microtrust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-microtrust span::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  flex: none;
}

/* Technical drawing panel */
.tech-panel {
  position: relative;
  background: var(--white);
  border: 1px solid var(--steel);
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 24px 48px -36px rgba(22, 48, 42, 0.55);
}

.tech-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--steel);
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
}
.tech-panel__head b { color: var(--pine); font-weight: 600; }

.tech-panel svg { width: 100%; height: auto; }

.tech-panel__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  padding: 0.35rem 0.25rem 0.75rem;
}
.tech-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(22, 48, 42, 0.18));
}

.tech-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--steel);
  border: 1px solid var(--steel);
  margin-top: 1rem;
}
.tech-readout div { background: var(--white); padding: 0.7rem 0.65rem; }
.tech-readout dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-bottom: 0.15rem;
}
.tech-readout dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--pine-deep);
  letter-spacing: -0.02em;
}
.tech-readout dd span { font-size: 0.6875rem; font-weight: 500; color: var(--ink-soft); margin-left: 2px; }

/* ---------- 7. Trust strip ---------- */
.trust-strip {
  border-bottom: 1px solid var(--steel);
  background: var(--paper-2);
}
.trust-strip ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}
@media (min-width: 780px) { .trust-strip ul { grid-template-columns: repeat(4, 1fr); } }
.trust-strip li {
  margin: 0;
  padding: 1.15rem clamp(0.75rem, 2vw, 1.5rem);
  border-left: 1px solid var(--steel);
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.trust-strip li:first-child { border-left: 0; }
.trust-strip b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pine-deep);
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

/* ---------- 8. Section headers ---------- */
.sec-head { margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.sec-head h2 { max-width: 22ch; }
.sec-head p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; max-width: 58ch; margin-bottom: 0; }
.sec-head--row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 860px) {
  .sec-head--row { grid-template-columns: 1fr auto; align-items: end; }
  .sec-head--row p { margin-bottom: 0.25rem; }
}

/* ---------- 9. Answer box (GEO) ---------- */
.answer-box {
  border-left: 3px solid var(--accent);
  background: var(--white);
  padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1.15rem, 2.2vw, 1.75rem);
  max-width: 78ch;
}
.answer-box p { margin-bottom: 0; font-size: var(--step-1); line-height: 1.6; }
.answer-box p + p { margin-top: 0.75rem; }
.answer-box q { quotes: none; }

/* ---------- 10. Cards / models ---------- */
.model-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--steel);
  border: 1px solid var(--steel);
}
@media (min-width: 760px) { .model-grid { grid-template-columns: repeat(3, 1fr); } }

.model {
  background: var(--white);
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.model__code {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.model h3 { margin: 0; font-size: 1.5rem; }
.model__desc { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; flex: 1; }
.model dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.875rem;
  border-top: 1px solid var(--steel);
  padding-top: 0.85rem;
}
.model dt { color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.75rem; }
.model dd { margin: 0; font-weight: 600; color: var(--pine-deep); text-align: right; font-variant-numeric: tabular-nums; }
.model__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

/* ---------- 11. Data rows ---------- */
.data-list { border-top: 1px solid var(--steel); margin: 0; }
.data-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--steel);
  font-size: 0.9375rem;
}
.data-row dt { color: var(--ink-soft); flex: none; }
.data-row .leader {
  flex: 1;
  border-bottom: 1px dotted var(--steel-dark);
  transform: translateY(-3px);
}
.data-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pine-deep);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- 12. Tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--steel); background: var(--white); }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 0.9375rem;
}
caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--steel);
}
th, td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--steel);
  vertical-align: top;
}
thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--pine);
  background: var(--paper-2);
  border-bottom: 1px solid var(--steel-dark);
  white-space: nowrap;
}
tbody th { font-weight: 600; color: var(--pine-deep); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td, tbody tr:hover th { background: #fafbf7; }
td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.mark-yes { color: var(--pine); font-weight: 600; }
.mark-no { color: var(--ink-faint); }

/* ---------- 13. Steps (真序列，允许编号) ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--steel);
  border: 1px solid var(--steel);
  max-width: none;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step;
  background: var(--white);
  padding: 1.35rem 1.25rem;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-ink);
  margin-bottom: 0.5rem;
}
.steps b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--pine-deep);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

/* ---------- 14. Feature list ---------- */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 9px; height: 9px;
  border-left: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(-45deg);
}
.checks b { color: var(--pine-deep); }

/* ---------- 15. Application tiles ---------- */
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .app-grid { grid-template-columns: repeat(3, 1fr); } }

.app-tile {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--white);
  border: 1px solid var(--steel);
  padding: 1.5rem 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.app-tile:hover { border-color: var(--pine); color: inherit; transform: translateY(-2px); }
.app-tile__icon { width: 34px; height: 34px; color: var(--pine); }
.app-tile h3 { font-size: 1.1875rem; margin: 0; }
.app-tile p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; max-width: none; }
.app-tile__kw {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--steel);
  padding-top: 0.65rem;
  margin-top: auto;
}

/* ---------- 16. FAQ ---------- */
.faq { border-top: 1px solid var(--steel); max-width: 84ch; }
.faq details {
  border-bottom: 1px solid var(--steel);
  padding: 0.25rem 0;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  cursor: pointer;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--pine-deep);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-ink);
  flex: none;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 1.15rem; }
.faq details > div p { font-size: 0.9375rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- 17. CTA band ---------- */
.cta-band {
  background: var(--pine);
  color: var(--paper);
  padding-block: clamp(2.75rem, 5vw, 4.25rem);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(130, 188, 0, 0.20) 0 2px,
    transparent 2px 14px
  );
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(to left, #000, transparent 55%);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band__grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 880px) {
  .cta-band__grid { grid-template-columns: 1.4fr 1fr; align-items: center; }
}
.cta-band h2 { color: var(--paper); margin-bottom: 0.6rem; }
.cta-band p { color: #cfdbd4; margin-bottom: 0; max-width: 48ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 880px) { .cta-band__actions { justify-content: flex-end; } }

/* ---------- 18. Forms ---------- */
.lead-form {
  background: var(--white);
  border: 1px solid var(--steel);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
.lead-form h2, .lead-form h3 { margin-bottom: 0.35rem; }
.lead-form__sub { font-size: 0.9375rem; color: var(--ink-soft); margin-bottom: 1.35rem; }
.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pine-deep);
  margin-bottom: 0.3rem;
}
.field label .req { color: var(--accent-ink); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--steel-dark);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: var(--ring);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; gap: 0.9rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 0.75rem; color: var(--ink-faint); margin: 0.9rem 0 0; max-width: none; line-height: 1.5; }
.form-status { font-size: 0.875rem; margin-top: 0.75rem; display: none; }
.form-status.is-ok { display: block; color: var(--pine); }

/* ---------- 19. Footer ---------- */
.site-footer {
  background: var(--pine-deep);
  color: #c2cec7;
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; } }

.site-footer .brand { color: var(--paper); }
.site-footer .brand small { color: #8fa39a; }
.footer-about { margin-top: 1rem; line-height: 1.6; max-width: 34ch; color: #a9bbb2; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--accent-tint);
  margin: 0 0 0.9rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: #c2cec7; text-decoration: none; }
.footer-col a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-block: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #8fa39a;
}
.footer-bottom a { color: #8fa39a; text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }

/* ---------- 20. Page hero (inner pages) ---------- */
.page-hero {
  padding-top: clamp(1.75rem, 3vw, 2.75rem);
  padding-bottom: clamp(1.75rem, 3.5vw, 3rem);
  border-bottom: 1px solid var(--steel);
}
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); max-width: 24ch; }
.page-hero .lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.55;
  margin-bottom: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
  list-style: none;
  padding: 0;
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--steel-dark); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--pine); text-decoration: underline; }

/* ---------- 21. Sidebar / spec rail ---------- */
.rail { position: sticky; top: 88px; }
.rail__box {
  border: 1px solid var(--steel);
  background: var(--white);
  padding: 1.25rem;
}
.rail__box h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin-bottom: 0.75rem; }
.rail__box .btn { margin-top: 0.9rem; }
.rail__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-faint);
  margin-top: 0.9rem;
  line-height: 1.5;
}

/* ---------- 22. Prose (guide) ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { max-width: 70ch; }
.prose figure { margin: 1.75rem 0; }
.prose figure svg { border: 1px solid var(--steel); background: var(--white); padding: 1rem; }
.prose figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 0.6rem;
}

.toc {
  border: 1px solid var(--steel);
  background: var(--paper-2);
  padding: 1.15rem 1.35rem;
  margin-bottom: 2rem;
}
.toc h2 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
  font-weight: 500;
}
.toc ol { margin: 0; padding-left: 1.2rem; font-size: 0.9375rem; max-width: none; }
.toc li { margin-bottom: 0.3rem; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--steel);
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
}

/* ---------- 23. Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(241, 242, 236, 0.97);
  border-top: 1px solid var(--steel-dark);
  backdrop-filter: blur(8px);
}
.sticky-cta .btn { flex: 1; }
@media (min-width: 940px) { .sticky-cta { display: none; } }

body { padding-bottom: 68px; }
@media (min-width: 940px) { body { padding-bottom: 0; } }

/* ---------- 24. Utilities ---------- */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }
.tight { margin-bottom: 0.4rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 0.75rem; top: -100px;
  z-index: 200;
  background: var(--pine);
  color: var(--paper);
  padding: 0.65rem 1rem;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; color: var(--paper); }

/* ---------- 25. Motion ---------- */
.draw-in path,
.draw-in line,
.draw-in circle,
.draw-in rect {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  animation: draw 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .draw-in path, .draw-in line, .draw-in circle, .draw-in rect {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* ---------- 26. Product catalogue ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--steel);
  border: 1px solid var(--steel);
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background-color 0.18s ease;
}
.product-card:hover { background: #fbfcf8; color: inherit; }

.product-card__media {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 1.1rem;
  background:
    radial-gradient(120% 90% at 50% 10%, #ffffff 0%, #f4f5ef 100%);
  border-bottom: 1px solid var(--steel);
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(22, 48, 42, 0.13));
  transition: transform 0.25s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.03); }

.product-card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.product-card__series {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--accent-ink);
}
.product-card h3 { margin: 0; font-size: 1.375rem; }
.product-card__desc { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); flex: 1; }
.product-card__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--steel);
  border: 1px solid var(--steel);
  margin-top: 0.2rem;
}
.product-card__specs div { background: var(--white); padding: 0.5rem 0.55rem; }
.product-card__specs dt {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-bottom: 0.1rem;
}
.product-card__specs dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--pine-deep);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.product-card__specs dd span { font-size: 0.625rem; font-weight: 500; color: var(--ink-soft); }

/* ---------- 27. Product detail ---------- */
.product-hero { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--steel); }
.product-hero__grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .product-hero__grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }

.gallery__main {
  position: relative;
  background: radial-gradient(120% 90% at 50% 15%, #ffffff 0%, #f2f3ed 100%);
  border: 1px solid var(--steel);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  aspect-ratio: 5 / 4;
}
.gallery__main img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(22, 48, 42, 0.16));
}
.gallery__tag {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: var(--accent-ink);
  background: var(--accent-tint);
  border: 1px solid #cfdcae;
  padding: 0.2rem 0.45rem;
}
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 0.6rem; }
.thumbs button {
  background: var(--white);
  border: 1px solid var(--steel);
  padding: 0.35rem;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
}
.thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.thumbs button[aria-pressed="true"] { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); }

.product-info h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 0.5rem; }
.product-info .lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }
.price-note {
  display: flex; align-items: baseline; gap: 0.6rem;
  border-top: 1px solid var(--steel); border-bottom: 1px solid var(--steel);
  padding: 0.9rem 0; margin: 1.2rem 0;
}
.price-note b { font-family: var(--font-display); font-size: 1.5rem; color: var(--pine-deep); letter-spacing: -0.02em; }
.price-note span { font-size: 0.8125rem; color: var(--ink-faint); font-family: var(--font-mono); }

/* ---------- 28. Series legend ---------- */
.series-row { display: grid; gap: 1px; background: var(--steel); border: 1px solid var(--steel); }
@media (min-width: 820px) { .series-row { grid-template-columns: repeat(3, 1fr); } }
.series-row > div { background: var(--white); padding: 1.35rem 1.25rem; }
.series-row h3 { font-size: 1.125rem; margin-bottom: 0.35rem; }
.series-row p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }
.series-row .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: var(--accent-ink);
  border: 1px solid #cfdcae;
  background: var(--accent-tint);
  padding: 0.15rem 0.4rem;
  margin-bottom: 0.6rem;
}


/* ---------- 29. WordPress menu output ---------- */
.nav > ul {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}
.nav > ul > li { margin: 0; }
.nav > ul > li > a { display: inline-block; }
.nav .current-menu-item > a,
.nav .current_page_item > a { color: var(--pine); border-bottom-color: var(--pine); }

.mobile-nav > ul { display: block; }
.mobile-nav > ul > li > a { display: block; padding: 0.85rem 0; }
.mobile-nav__extra { border-top: 1px solid var(--steel); margin-top: 0.25rem; }

/* WordPress core block basics */
.prose .wp-block-image img { height: auto; }
.prose .wp-block-heading { margin-top: 2rem; }
.alignwide { width: min(1220px, 100%); margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pagination .page-numbers {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--steel-dark);
  text-decoration: none;
  color: var(--pine-deep);
}
.pagination .current { background: var(--pine); color: var(--paper); border-color: var(--pine); }


/* ---------- 30. Contact Form 7 ---------- */
.magnus-cf7 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
@media (min-width: 560px) {
  .magnus-cf7 { grid-template-columns: 1fr 1fr; }
  .magnus-cf7 .field--full { grid-column: 1 / -1; }
}
.magnus-cf7 p { margin: 0; max-width: none; }
.magnus-cf7 label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pine-deep);
  margin-bottom: 0.3rem;
}
.magnus-cf7 .req { color: var(--accent-ink); }
.magnus-cf7 .wpcf7-form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--steel-dark);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
}
.magnus-cf7 .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: var(--ring);
  background: var(--white);
}
.magnus-cf7 textarea.wpcf7-form-control { min-height: 110px; resize: vertical; }
.magnus-cf7 .wpcf7-submit {
  width: auto;
  background: var(--pine);
  color: var(--paper);
  border: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius);
  cursor: pointer;
}
.magnus-cf7 .wpcf7-submit:hover { background: var(--pine-deep); }
body .wpcf7 .wpcf7-not-valid-tip { color: var(--danger); font-size: 0.8125rem; margin-top: 0.25rem; }
body .wpcf7 .wpcf7-response-output {
  grid-column: 1 / -1;
  border: 1px solid var(--steel);
  background: var(--white);
  padding: 0.8rem 1rem;
  font-size: 0.875rem;
  margin: 0;
}
body .wpcf7 .wpcf7-spinner { display: none; }
.wpcf7 form.invalid .wpcf7-response-output { border-color: var(--danger); }
body .wpcf7 form.sent .wpcf7-response-output { border-color: var(--pine); color: var(--pine-deep); }

/* CF7 global fallback (form output sits outside .magnus-cf7) */
body .wpcf7 .wpcf7-response-output {
  border: 1px solid var(--steel);
  background: var(--white);
  padding: 0.8rem 1rem;
  font-size: 0.875rem;
  margin: 1rem 0 0;
}
body .wpcf7 form.sent .wpcf7-response-output { border-color: var(--pine); color: var(--pine-deep); }
,
body .wpcf7 form.invalid .wpcf7-response-output,
body .wpcf7 form.unaccepted .wpcf7-response-output { border-color: var(--danger); }
body .wpcf7 .wpcf7-not-valid-tip { color: var(--danger); font-size: 0.8125rem; margin-top: 0.25rem; }
body .wpcf7 .wpcf7-spinner { display: none; }
