/* efrvis.com — High-Contrast Swiss Brutalist Editorial Design System
 * Monochrome Palette: Off-White (#F4F3EF), Deep Black (#0A0A0A), Paper White (#FFFFFF), Graphite (#4A4A4A)
 * Typography: Archivo (Display/Body) + IBM Plex Mono (Index/Tabular)
 * Rhythm: Stacked Text Echo Effects + Exposed 1px Asymmetrical Swiss Grid + 0px Brutalist Edges
 */
:root {
  --bg: #F4F3EF;
  --surface: #FFFFFF;
  --ink: #0A0A0A;
  --ink-muted: #4A4A4A;
  --ink-soft: #737373;
  --echo-1: #D8D6D0;
  --echo-2: #9E9C96;
  --rule: #0A0A0A;
  --rule-soft: #CECCC5;

  --font-sans: "Archivo", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 88px;

  --max-width: 1220px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--ink);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--sp-1);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  font-weight: 700;
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus { left: var(--sp-2); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

a {
  color: var(--ink);
  text-underline-offset: 4px;
}
a:hover { opacity: 0.72; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Swiss Grid Header */
.site-header {
  background: var(--bg);
  border-bottom: 1.5px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: var(--sp-2);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1.5px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--sp-3);
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  border: 1.5px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.lang-switch a {
  padding: 8px 10px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink-muted);
  background: var(--bg);
}

.lang-switch a.active-lang {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

/* Brutalist Buttons (0px edges, strict black/white contrast) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--rule);
  transition: background-color 0.14s ease, color 0.14s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: #262626;
  color: var(--surface);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  opacity: 1;
}

/* Editorial & Brutalist Typography */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin: 0 0 var(--sp-2);
  display: block;
}

/* Signature Stacked Text Echo Block */
.echo-stack {
  margin-bottom: var(--sp-3);
}

.echo-line {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(2.15rem, 4.4vw, 3.65rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  user-select: none;
}

.echo-line.echo-far {
  color: transparent;
  -webkit-text-stroke: 1px var(--echo-2);
  margin-bottom: 2px;
}

.echo-line.echo-mid {
  color: var(--echo-1);
  margin-bottom: 4px;
}

h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0 0 var(--sp-3);
  color: var(--ink);
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 var(--sp-2);
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-1);
}

.lead {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 0 var(--sp-4);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}

.section {
  padding: var(--sp-8) 0;
  border-bottom: 1.5px solid var(--rule);
}

.hero-section {
  padding: var(--sp-8) 0;
  border-bottom: 1.5px solid var(--rule);
  background: var(--bg);
}

/* Asymmetrical Swiss Grid Layouts */
.swiss-hero {
  display: grid;
  grid-template-columns: 7.5fr 4.5fr;
  gap: var(--sp-6);
  align-items: start;
}

.hero-footnotes {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.stencil-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Editorial Spec / Summary Box */
.funnel-box {
  background: var(--surface);
  border: 1.5px solid var(--rule);
  padding: var(--sp-3);
}

.snapshot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.9rem;
}
.snapshot-row:last-child { border-bottom: none; }

.status-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
}
.dot { display: none; }

/* Industry Stencil Split */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.industry-card {
  background: var(--surface);
  border: 1.5px solid var(--rule);
  padding: var(--sp-3);
}

.industry-card img { margin-bottom: var(--sp-2); }

/* Exposed Grid 3-Step Strip */
.steps-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.95fr;
  border: 1.5px solid var(--rule);
  background: var(--surface);
  margin-top: var(--sp-4);
}

.step-col {
  padding: var(--sp-4) var(--sp-3);
  border-right: 1.5px solid var(--rule);
}
.step-col:last-child { border-right: none; }
.step-col p { color: var(--ink-muted); margin: 8px 0 0; font-size: 0.94rem; }

/* Sticky 4/8 Swiss Ledger */
.sticky-split {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--sp-6);
  align-items: start;
}

.sticky-aside { position: sticky; top: 88px; }

.ledger-list { border-top: 1.5px solid var(--rule); }

.ledger-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--rule-soft);
}
.ledger-item:last-child { border-bottom: 1.5px solid var(--rule); }

.ledger-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  padding-top: 2px;
}

.ledger-item p {
  margin: 6px 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Monochrome Profit Workbench */
.workbench-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--sp-4);
  align-items: stretch;
  margin-top: var(--sp-4);
}

.panel {
  background: var(--surface);
  border: 1.5px solid var(--rule);
  padding: var(--sp-3);
}

.preset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--sp-3);
}

.preset-btn {
  min-height: 36px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
}
.preset-btn:hover,
.preset-btn.active {
  background: var(--ink);
  color: var(--bg);
}

.field { margin-bottom: var(--sp-2); }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  background: var(--bg);
  border: 1.5px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.field select { font-family: var(--font-sans); }

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.kpi-cell {
  background: var(--bg);
  border: 1.5px solid var(--rule);
  padding: var(--sp-2);
}
.kpi-cell.primary-cell {
  background: var(--ink);
  color: var(--bg);
}
.kpi-cell.primary-cell .kpi-label { color: #D4D4D4; }
.kpi-cell.primary-cell .kpi-val { color: var(--surface); }

.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 4px;
}
.kpi-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
}

.metric-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.metric-table td {
  padding: 11px 6px;
  border-bottom: 1px solid var(--rule-soft);
}
.metric-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
}

.notice-bar {
  margin-top: var(--sp-2);
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: var(--bg);
  font-size: 0.85rem;
  color: var(--ink);
}

/* Dramatic Monochrome Inverted Featured Block + Asymmetric Pair */
.arch-featured {
  background: var(--ink);
  color: var(--bg);
  border: 1.5px solid var(--rule);
  padding: var(--sp-6);
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--sp-4);
  align-items: center;
  margin-bottom: var(--sp-3);
}
.arch-featured h3,
.arch-featured .kicker { color: var(--surface); }
.arch-featured .lead { color: #D4D4D4; }
.arch-featured .btn-primary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--surface);
}
.arch-featured .btn-primary:hover {
  background: var(--echo-1);
  color: var(--ink);
}
.arch-featured .check-list li {
  color: #E5E5E5;
  border-bottom-color: #333333;
}

.arch-pair {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-3);
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.92rem;
}
.check-list li:last-child { border-bottom: none; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1.5px solid var(--rule);
  background: var(--surface);
  margin: var(--sp-3) 0;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.data-table th,
table.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-soft);
  text-align: left;
  vertical-align: top;
}
table.data-table th {
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table.data-table tr:last-child td { border-bottom: none; }

/* FAQ Accordion */
.faq-ledger {
  border-top: 1.5px solid var(--rule);
  margin-top: var(--sp-3);
}
details.faq-row {
  border-bottom: 1px solid var(--rule-soft);
  padding: var(--sp-2) 0;
}
details.faq-row:last-child { border-bottom: 1.5px solid var(--rule); }
details.faq-row summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: 1rem;
}
details.faq-row summary::after {
  content: "[+]";
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  flex-shrink: 0;
}
details.faq-row[open] summary::after { content: "[-]"; }
details.faq-row p {
  margin: var(--sp-1) 0 var(--sp-2);
  color: var(--ink-muted);
  max-width: 72ch;
}

/* Breadcrumb & Form Status */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--sp-2);
}
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.form-status {
  margin-top: var(--sp-2);
  padding: 12px 14px;
  border: 1.5px solid var(--rule);
  display: none;
  font-size: 0.9rem;
}
.form-status.success {
  display: block;
  background: var(--ink);
  color: var(--surface);
}
.form-status.error {
  display: block;
  background: var(--surface);
  color: var(--ink);
  border-width: 2px;
}

.closing-band {
  background: var(--ink);
  color: var(--bg);
  padding: var(--sp-8) 0;
  border-bottom: 1.5px solid #2A2A2A;
}

.closing-band h2,
.closing-band .kicker {
  color: var(--surface);
}

.closing-band .lead {
  color: #D4D4D4;
}

.closing-grid {
  display: grid;
  grid-template-columns: 5.5fr 6.5fr;
  gap: var(--sp-4);
  align-items: start;
}

.closing-form-box {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--surface);
  padding: var(--sp-3);
}

.closing-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.closing-form-box .btn-primary {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
  width: 100%;
}

.closing-form-box .btn-primary:hover {
  background: #262626;
}

.closing-band .btn-ghost {
  color: var(--surface);
  border-color: #737373;
}

.closing-band .btn-ghost:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--surface);
}

.fit-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.fit-card {
  background: var(--surface);
  border: 1.5px solid var(--rule);
  padding: var(--sp-4);
}

.fit-card.muted-fit {
  background: var(--bg);
}

.guarantee-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
  background: var(--surface);
  margin-top: var(--sp-4);
}

.guarantee-item {
  padding: var(--sp-3);
  border-right: 1.5px solid var(--rule);
}

.guarantee-item:last-child {
  border-right: none;
}

.guarantee-item p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  padding: var(--sp-6) 0 var(--sp-4);
  background: var(--ink);
  color: var(--bg);
}
.site-footer h3,
.site-footer a { color: var(--surface); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #D4D4D4; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--surface); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid #333333;
  padding-top: var(--sp-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: 0.82rem;
  color: #A3A3A3;
}

@media (max-width: 960px) {
  .swiss-hero,
  .steps-grid,
  .sticky-split,
  .workbench-grid,
  .arch-featured,
  .arch-pair,
  .industry-grid,
  .fit-grid,
  .closing-grid,
  .guarantee-strip,
  .closing-form-row,
  .footer-grid,
  .hero-footnotes {
    grid-template-columns: 1fr;
  }
  .step-col,
  .guarantee-item {
    border-right: none;
    border-bottom: 1.5px solid var(--rule);
  }
  .step-col:last-child,
  .guarantee-item:last-child { border-bottom: none; }
  .sticky-aside { position: static; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1.5px solid var(--rule);
    padding: var(--sp-3);
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 4px; }
}
