/* ======================================================================
   FORGEMARK — Design System
   forge-mark.com · znakowanie i grawerowanie metalu · Warszawa
   ====================================================================== */

/* -------------------------------------------------- 1. TOKENS ---------- */
/* Suppress all transitions while theme attribute is being swapped — prevents stale-color flash */
.no-transition, .no-transition *, .no-transition *::before, .no-transition *::after {
  transition: none !important;
}

:root {
  /* Color — graphite + spark amber */
  --ink-100:  oklch(98% 0.008 80);
  --ink-200:  oklch(94% 0.010 80);
  --ink-300:  oklch(86% 0.012 80);
  --ink-400:  oklch(70% 0.012 80);
  --ink-500:  oklch(54% 0.012 80);
  --ink-600:  oklch(40% 0.014 80);
  --ink-700:  oklch(28% 0.014 80);
  --ink-800:  oklch(19% 0.012 80);
  --ink-900:  oklch(13% 0.010 80);
  --ink-950:  oklch(9%  0.008 80);

  /* Steel — cool neutrals for borders/surfaces */
  --steel-100: oklch(96% 0.005 240);
  --steel-300: oklch(82% 0.008 240);
  --steel-500: oklch(58% 0.010 240);
  --steel-700: oklch(34% 0.012 240);
  --steel-900: oklch(16% 0.012 240);

  /* Spark — warm accent (heated metal / laser mark) */
  --spark-300: oklch(86% 0.10 60);
  --spark-400: oklch(78% 0.14 55);
  --spark-500: oklch(72% 0.17 50);   /* primary accent */
  --spark-600: oklch(64% 0.18 45);
  --spark-700: oklch(54% 0.17 40);

  /* Brass — secondary accent, used sparingly */
  --brass-500: oklch(76% 0.11 85);

  /* Status */
  --ok:    oklch(70% 0.14 150);
  --warn:  oklch(78% 0.15 80);
  --err:   oklch(62% 0.18 25);

  /* Semantic — light theme by default */
  --bg:        var(--ink-100);
  --bg-soft:   var(--ink-200);
  --bg-elev:   #ffffff;
  --surface:   #ffffff;
  --line:      var(--ink-300);
  --line-soft: var(--ink-200);
  --fg:        var(--ink-900);
  --fg-mute:   var(--ink-600);
  --fg-dim:    var(--ink-500);
  --accent:    var(--spark-600);
  --accent-fg: #ffffff;
  --accent-soft: oklch(94% 0.05 55);
  --focus:     var(--spark-500);

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-12: 0.75rem;
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-15: 0.9375rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-28: 1.75rem;
  --fs-32: 2rem;
  --fs-40: 2.5rem;
  --fs-48: 3rem;
  --fs-56: 3.5rem;
  --fs-72: 4.5rem;

  --lh-tight: 1.05;
  --lh-snug:  1.2;
  --lh-base:  1.55;

  /* Spacing — 4px base */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  /* Radii — small, industrial */
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 8px;
  --r-pill: 999px;

  /* Borders, shadows */
  --bw: 1px;
  --shadow-1: 0 1px 2px rgba(15, 17, 21, 0.04), 0 1px 1px rgba(15, 17, 21, 0.03);
  --shadow-2: 0 6px 16px -8px rgba(15, 17, 21, 0.18), 0 2px 4px rgba(15, 17, 21, 0.05);
  --shadow-3: 0 20px 40px -16px rgba(15, 17, 21, 0.25);

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --header-h: 64px;

  /* Motion */
  --t-fast: 120ms cubic-bezier(.2,.7,.3,1);
  --t-base: 200ms cubic-bezier(.2,.7,.3,1);
}

/* Dark theme — default site mood is dark, but light is also supported */
:root[data-theme="dark"], :root.dark {
  --bg:        var(--ink-950);
  --bg-soft:   var(--ink-900);
  --bg-elev:   var(--ink-800);
  --surface:   oklch(17% 0.010 240);
  --line:      oklch(28% 0.010 240);
  --line-soft: oklch(22% 0.010 240);
  --fg:        var(--ink-100);
  --fg-mute:   var(--ink-300);
  --fg-dim:    var(--ink-400);
  --accent:    var(--spark-500);
  --accent-fg: var(--ink-950);
  --accent-soft: oklch(28% 0.08 50);
  --focus:     var(--spark-400);

  --shadow-1: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-2: 0 8px 24px -10px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-3: 0 24px 56px -16px rgba(0,0,0,0.7);
}

/* Auto switch when no override */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(.light) {
    --bg:        var(--ink-950);
    --bg-soft:   var(--ink-900);
    --bg-elev:   var(--ink-800);
    --surface:   oklch(17% 0.010 240);
    --line:      oklch(28% 0.010 240);
    --line-soft: oklch(22% 0.010 240);
    --fg:        var(--ink-100);
    --fg-mute:   var(--ink-300);
    --fg-dim:    var(--ink-400);
    --accent:    var(--spark-500);
    --accent-fg: var(--ink-950);
    --accent-soft: oklch(28% 0.08 50);
    --focus:     var(--spark-400);
    --shadow-1: 0 1px 2px rgba(0,0,0,0.5);
    --shadow-2: 0 8px 24px -10px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.3);
    --shadow-3: 0 24px 56px -16px rgba(0,0,0,0.7);
  }
}

/* -------------------------------------------------- 2. RESET ----------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: var(--lh-base);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-1);
}
::selection { background: var(--spark-500); color: var(--ink-950); }

/* -------------------------------------------------- 3. TYPE ------------ */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: var(--lh-tight); letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2rem, 4.5vw + 1rem, 4.5rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 1vw + 0.8rem, 1.5rem); }
h4 { font-size: var(--fs-18); }
p { margin: 0 0 1em; max-width: 65ch; text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: currentColor;
}
.mono { font-family: var(--font-mono); font-feature-settings: "tnum","zero"; }
.serial { font-family: var(--font-mono); font-size: var(--fs-12); letter-spacing: 0.06em; color: var(--fg-dim); }
.lead { font-size: clamp(1.05rem, 0.5vw + 1rem, 1.25rem); color: var(--fg-mute); max-width: 60ch; }
small, .small { font-size: var(--fs-13); color: var(--fg-mute); }

/* -------------------------------------------------- 4. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--s-5); }
section { padding-block: clamp(var(--s-8), 8vw, var(--s-10)); }
.section-tight { padding-block: clamp(var(--s-7), 6vw, var(--s-9)); }
.divider { height: 1px; background: var(--line); width: 100%; }
.grid { display: grid; gap: var(--s-5); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stack > * + * { margin-top: var(--s-3); }
.hstack { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }

/* Engineering-tick separator headline */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.section-head h2 { max-width: 18ch; }
.section-head .eyebrow { margin-bottom: var(--s-3); display: block; }

/* -------------------------------------------------- 5. HEADER / FOOTER  */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: var(--fs-18);
}
.brand .mark { width: 24px; height: 24px; }
.brand-name { display: inline-flex; align-items: baseline; gap: 1px; }
.brand-name .accent-dot { color: var(--accent); }

nav.primary { display: none; gap: var(--s-5); margin-inline-start: var(--s-6); }
nav.primary a { color: var(--fg-mute); font-size: var(--fs-14); font-weight: 500; transition: color var(--t-fast); }
nav.primary a:hover { color: var(--fg); }
nav.primary a[aria-current="page"] { color: var(--fg); }
@media (min-width: 900px) { nav.primary { display: inline-flex; } }

.header-spacer { flex: 1; }
.header-utils { display: inline-flex; align-items: center; gap: var(--s-3); }
@media (max-width: 600px) {
  .header-utils { gap: var(--s-2); }
  .header-utils .lang-toggle { padding: 3px 4px; }
  .header-utils .btn-sm { --pad-x: 10px; --pad-y: 7px; }
  .site-header .inner { gap: var(--s-3); }
}
@media (max-width: 480px) {
  /* Quote CTA also lives in the mobile menu (cta-row); drop the redundant header
     copy so lang + theme + hamburger fit a 390px bar without horizontal overflow. */
  .header-utils .btn-quote { display: none; }
}
.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--font-mono); font-size: var(--fs-12);
  border: 1px solid var(--line); border-radius: var(--r-1);
  padding: 4px 6px;
}
.lang-toggle a { padding: 2px 6px; color: var(--fg-mute); border-radius: 1px; cursor: pointer; transition: color var(--t-fast), background var(--t-fast); }
.lang-toggle a:hover { color: var(--fg); }
.lang-toggle a[aria-current="true"] { background: var(--fg); color: var(--bg); }

/* Theme toggle button */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  color: var(--fg-mute);
  background: transparent;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.theme-toggle:hover { color: var(--fg); border-color: var(--fg); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hamburger button (mobile) */
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  color: var(--fg);
  background: transparent;
}
.menu-toggle .bars { width: 16px; height: 12px; position: relative; }
.menu-toggle .bars::before,
.menu-toggle .bars::after,
.menu-toggle .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px;
  background: currentColor; transition: transform var(--t-base), top var(--t-base), opacity var(--t-base);
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars span { top: 50%; transform: translateY(-50%); }
.menu-toggle .bars::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after  { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }
.menu-toggle[aria-expanded="true"] .bars span    { opacity: 0; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 49;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-base), opacity var(--t-base);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav .inner {
  padding: var(--s-5) var(--s-5) var(--s-7);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.mobile-nav a {
  padding: var(--s-3) 0;
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: 600;
  color: var(--fg);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .cta-row {
  margin-top: var(--s-4);
  display: flex; flex-wrap: wrap; gap: var(--s-3);
}

@media (min-width: 900px) {
  .mobile-nav { display: none; }
}

body.menu-open { overflow: hidden; }

/* Social icon row */
.social-row {
  display: inline-flex; gap: var(--s-2); flex-wrap: wrap;
}
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  color: var(--fg-mute);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.social-row a:hover { color: var(--accent-fg); background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.social-row a svg { width: 16px; height: 16px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: var(--s-8) var(--s-5);
  margin-top: var(--s-9);
}
.site-footer .cols {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h5 { font-family: var(--font-mono); font-size: var(--fs-12); text-transform: uppercase; letter-spacing: 0.18em; color: var(--fg-dim); margin: 0 0 var(--s-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.site-footer a { color: var(--fg-mute); }
.site-footer a:hover { color: var(--fg); }
.footer-meta { border-top: 1px solid var(--line); margin-top: var(--s-7); padding-top: var(--s-4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); color: var(--fg-dim); font-size: var(--fs-13); }

/* -------------------------------------------------- 6. BUTTONS --------- */
.btn {
  --pad-y: 12px;
  --pad-x: 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-15);
  line-height: 1;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-2);
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, white); }
.btn-secondary { background: var(--fg); color: var(--bg); }
.btn-secondary:hover { background: color-mix(in oklab, var(--fg) 88%, var(--accent)); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); background: var(--bg-soft); }
.btn-sm { --pad-y: 8px; --pad-x: 12px; font-size: var(--fs-13); }
.btn-lg { --pad-y: 16px; --pad-x: 22px; font-size: var(--fs-16); }
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(2px); }

/* -------------------------------------------------- 7. CARDS / SURFACES */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--s-5);
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.card.linkable { display: block; }
.card.linkable:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-2); }

.service-card {
  position: relative;
  display: flex; flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  transition: border-color var(--t-base), transform var(--t-base);
  min-height: 220px;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.service-card .num { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--fg-dim); letter-spacing: 0.1em; }
.service-card h3 { margin-top: auto; }
.service-card .from { font-family: var(--font-mono); font-size: var(--fs-13); color: var(--fg-mute); }
.service-card .arrow-c { position: absolute; top: var(--s-5); right: var(--s-5); width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 999px; display: grid; place-items: center; color: var(--fg-mute); transition: all var(--t-base); }
.service-card:hover .arrow-c { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--t-base), transform var(--t-base);
}
.product-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.product-card .ph { aspect-ratio: 4/5; background: var(--bg-soft); position: relative; border-bottom: 1px solid var(--line); }
.product-card .body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.product-card .meta { display: flex; justify-content: space-between; font-size: var(--fs-13); color: var(--fg-mute); }
.product-card .price { font-family: var(--font-mono); color: var(--fg); }

/* -------------------------------------------------- 8. PLACEHOLDERS --- */
.ph-img {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in oklab, var(--line) 70%, transparent) 14px 15px),
    var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  position: relative;
  display: grid; place-items: center;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  overflow: hidden;
}
.ph-img::after {
  content: attr(data-label);
  background: var(--surface);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
}
.ph-img.dark {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, oklch(28% 0.01 240) 14px 15px),
    oklch(15% 0.012 240);
  border-color: oklch(28% 0.01 240);
  color: var(--ink-400);
}
.ph-img.dark::after { background: oklch(20% 0.012 240); color: var(--ink-300); border-color: oklch(30% 0.01 240); }

/* tick marks on hero canvas (engineering chart feel) */
.tick-frame {
  position: relative;
  isolation: isolate;
}
.tick-frame::before, .tick-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* -------------------------------------------------- 9. BADGES / CHIPS - */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: var(--r-1);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--fg-mute);
}
.badge.accent { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in oklab, var(--accent) 35%, transparent); }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-13); font-weight: 500;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--fg-mute);
  background: var(--bg);
  transition: all var(--t-fast);
  cursor: pointer;
}
.chip:hover { border-color: var(--fg); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* -------------------------------------------------- 10. FORMS --------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: var(--fs-12); text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-mute); }
.input, .textarea, .select {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 12px 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-500); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent); }
.textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.dropzone {
  border: 1px dashed var(--line);
  border-radius: var(--r-2);
  padding: var(--s-5);
  text-align: center;
  color: var(--fg-mute);
  background: var(--bg-soft);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .hint { font-family: var(--font-mono); font-size: var(--fs-12); text-transform: uppercase; letter-spacing: 0.14em; }

.checkbox { display: inline-flex; align-items: flex-start; gap: var(--s-2); font-size: var(--fs-13); color: var(--fg-mute); cursor: pointer; }
.checkbox input { margin-top: 2px; accent-color: var(--accent); }

/* -------------------------------------------------- 11. TABLE --------- */
.tariff {
  width: 100%; border-collapse: collapse; font-size: var(--fs-14);
}
.tariff th, .tariff td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tariff th { font-family: var(--font-mono); font-size: var(--fs-12); text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-dim); font-weight: 500; }
.tariff td.price { font-family: var(--font-mono); white-space: nowrap; }
.tariff tr:hover td { background: var(--bg-soft); }

/* -------------------------------------------------- 12. ACCORDION ----- */
.accordion details {
  border-bottom: 1px solid var(--line);
}
.accordion details:first-of-type { border-top: 1px solid var(--line); }
.accordion summary {
  list-style: none;
  padding: var(--s-4) 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--fs-18);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .plus { width: 20px; height: 20px; position: relative; flex-shrink: 0; }
.accordion summary .plus::before, .accordion summary .plus::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--fg); }
.accordion summary .plus::before { width: 14px; height: 1.5px; }
.accordion summary .plus::after { width: 1.5px; height: 14px; transition: transform var(--t-base); }
.accordion details[open] summary .plus::after { transform: rotate(90deg); }
.accordion .ans { padding: 0 0 var(--s-5) 0; color: var(--fg-mute); max-width: 70ch; }

/* -------------------------------------------------- 13. CRUMBS -------- */
.crumbs { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.14em; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--fg-mute); }
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { opacity: 0.5; }

/* -------------------------------------------------- 14. HERO ---------- */
.hero {
  padding-top: var(--s-8);
  padding-bottom: var(--s-9);
  position: relative;
  overflow: hidden;
}
.hero .grid {
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: var(--s-7);
}
@media (max-width: 900px) { .hero .grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: var(--s-5); }
.hero .accent { color: var(--accent); }
.hero-canvas {
  position: relative;
  aspect-ratio: 5/4;
  background:
    linear-gradient(180deg, oklch(20% 0.012 240) 0%, oklch(13% 0.010 240) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.hero-canvas .grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--ink-100) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--ink-100) 6%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-canvas .spark {
  position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%);
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, oklch(85% 0.18 60 / 0.55), transparent 60%);
  filter: blur(8px);
}
.hero-canvas .label { position: absolute; padding: 4px 8px; background: oklch(20% 0.012 240); border: 1px solid oklch(35% 0.01 240); border-radius: var(--r-1); font-family: var(--font-mono); font-size: var(--fs-12); color: var(--ink-300); }
.hero-canvas .label.tl { top: 16px; left: 16px; }
.hero-canvas .label.br { bottom: 16px; right: 16px; }
.hero-canvas .tick { position: absolute; background: oklch(45% 0.01 240); }
.hero-canvas .tick.t-x { left: 16px; right: 16px; height: 1px; top: 50%; }
.hero-canvas .tick.t-y { top: 16px; bottom: 16px; width: 1px; left: 50%; }
.hero-canvas .corner {
  position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--spark-500);
}
.hero-canvas .corner.tl { top: 24px; left: 24px; border-right: 0; border-bottom: 0; }
.hero-canvas .corner.tr { top: 24px; right: 24px; border-left: 0; border-bottom: 0; }
.hero-canvas .corner.bl { bottom: 24px; left: 24px; border-right: 0; border-top: 0; }
.hero-canvas .corner.br { bottom: 24px; right: 24px; border-left: 0; border-top: 0; }
.hero-canvas .stamp {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  color: oklch(70% 0.08 60);
  text-shadow: 0 0 24px oklch(72% 0.17 50 / 0.55);
  mix-blend-mode: screen;
}

/* -------------------------------------------------- 15. TRUST STRIP --- */
.trust-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--surface);
}
.trust-strip .cell { padding: var(--s-5); border-right: 1px solid var(--line); }
.trust-strip .cell:last-child { border-right: 0; }
@media (max-width: 760px) { .trust-strip .cell { border-right: 0; border-bottom: 1px solid var(--line); } .trust-strip .cell:last-child { border-bottom: 0; } }
.trust-strip .k { font-family: var(--font-mono); font-size: var(--fs-12); text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-dim); }
.trust-strip .v { font-family: var(--font-display); font-size: var(--fs-24); font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }

/* -------------------------------------------------- 16. PROCESS ------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-5); position: relative; }
.process .step {
  position: relative;
  padding-top: var(--s-5);
  border-top: 2px solid var(--line);
}
.process .step::before {
  content: "";
  position: absolute; top: -5px; left: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 999px;
}
.process .step .num { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--fg-dim); letter-spacing: 0.14em; text-transform: uppercase; }
.process .step h4 { margin: 4px 0 var(--s-2); }
.process .step p { color: var(--fg-mute); font-size: var(--fs-14); margin: 0; }

/* -------------------------------------------------- 17. CTA BLOCK ----- */
.cta-block {
  background: var(--ink-950);
  color: var(--ink-100);
  border-radius: var(--r-3);
  padding: clamp(var(--s-6), 5vw, var(--s-8));
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-block::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 90% 10%, oklch(72% 0.17 50 / 0.25), transparent 60%),
    radial-gradient(40% 60% at 10% 90%, oklch(72% 0.17 50 / 0.15), transparent 60%),
    linear-gradient(180deg, oklch(15% 0.012 240), oklch(9% 0.008 240));
}
.cta-block h2 { color: var(--ink-100); }
.cta-block .lead { color: var(--ink-300); }

/* -------------------------------------------------- 18. UTILS --------- */
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.hidden-sm { display: none; }
@media (min-width: 700px) { .hidden-sm { display: initial; } .only-sm { display: none; } }
.text-mute { color: var(--fg-mute); }
.text-dim  { color: var(--fg-dim); }
.text-accent { color: var(--accent); }
.no-wrap { white-space: nowrap; }

/* Wide content (tariff tables) stays usable on narrow screens by scrolling
   horizontally inside its own track instead of widening the whole page. */
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Inline 2-col grids (grid-template-columns set via the style attribute on .grid)
   can't carry their own media query, so they never stacked on phones and pushed
   the page wider than the viewport. Force a single column on small screens.
   Class-based grids (defined in page <style> blocks) keep their own breakpoints. */
@media (max-width: 900px) {
  .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* -------------------------------------------------- 19. LOGO ---------- */
.logo-mark {
  display: inline-block;
  width: 1em; height: 1em;
  position: relative;
}
.logo-mark svg { width: 100%; height: 100%; display: block; }
