@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anton";
  src: url("../fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg-dark: #15140e;
  --bg-card-dark: #1d1b13;
  --bg-surface-dark: #26231a;
  --accent: #ce2e22;
  --accent-soft: rgba(206, 46, 34, 0.18);
  --paper: #f8f6f1;
  --text: #1a1813;
  --muted: #6b6453;
  --on-dark: rgba(244, 240, 231, 0.96);
  --on-dark-muted: rgba(244, 240, 231, 0.66);
  --on-dark-border: rgba(244, 240, 231, 0.13);
  --ink: #1a1813;
  --font-body: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --max: 1180px;
  --radius-sm: 3px;
  --radius-md: 8px;
  --shadow-print: 10px 10px 0 rgba(206, 46, 34, 0.24);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--on-dark);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(21, 20, 14, 0.76), rgba(21, 20, 14, 0.9)),
    url("../images/tex-newsprint.jpg") center / 540px repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background: url("../images/halftone-coarse.jpg") top right / 520px auto no-repeat;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--on-dark);
  background: rgba(21, 20, 14, 0.92);
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--on-dark-border);
  backdrop-filter: blur(18px) saturate(140%);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: auto;
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--on-dark-muted);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 2px 20px 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.07em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
}

.btn:focus-visible {
  outline: 3px solid rgba(206, 46, 34, 0.5);
  outline-offset: 4px;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.58);
}

.btn-primary:hover {
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.6);
}

.btn-ghost {
  color: var(--on-dark);
  border-color: var(--on-dark-border);
  background: rgba(244, 240, 231, 0.05);
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: clamp(42px, 6vw, 72px) 0 clamp(38px, 5vw, 64px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.64fr);
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
}

.hero-wordmark {
  width: 178px;
  height: auto;
  margin-bottom: 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(52px, 6.4vw, 86px);
  line-height: 0.92;
}

.lede {
  max-width: 690px;
  margin-bottom: 24px;
  color: var(--on-dark-muted);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.proof-line {
  width: fit-content;
  margin: 20px 0 0;
  padding: 10px 14px 8px;
  border: 2px solid var(--accent);
  color: #fff;
  background: rgba(206, 46, 34, 0.11);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-0.7deg);
}

.hero-media {
  position: relative;
  margin: 0;
  border: 3px solid var(--accent);
  background: var(--bg-surface-dark);
  box-shadow: var(--shadow-print), 0 28px 80px rgba(0, 0, 0, 0.4);
  transform: rotate(1deg);
}

.hero-media::before {
  content: "Shop manager layer";
  position: absolute;
  top: 18px;
  left: -24px;
  z-index: 2;
  padding: 8px 12px 6px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.af-marquee {
  overflow: hidden;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(20px, 3.6vw, 44px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.af-marquee__track {
  display: flex;
  width: max-content;
  gap: 28px;
  padding: 12px 0 9px;
  animation: marquee 32s linear infinite;
}

.af-marquee span,
.af-marquee b {
  padding-right: 28px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.case-body {
  padding: clamp(64px, 10vw, 116px) 0;
  background: var(--paper);
  color: var(--text);
}

.body-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 22px;
}

.miss-panel,
.strength-panel {
  border: 2px solid var(--ink);
  background:
    linear-gradient(rgba(248, 246, 241, 0.91), rgba(248, 246, 241, 0.91)),
    url("../images/tex-paper.jpg") center / 420px repeat;
  box-shadow: 8px 8px 0 rgba(26, 24, 19, 0.1);
  padding: clamp(24px, 4vw, 42px);
}

.miss-panel {
  background: var(--bg-dark);
  color: var(--on-dark);
  box-shadow: 8px 8px 0 rgba(206, 46, 34, 0.28);
}

.miss-panel p {
  color: var(--on-dark-muted);
}

.case-body h2,
.workflow-band h2,
.related-section h2,
.final-cta h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.95;
}

.case-body p,
.workflow-band p,
.final-cta p {
  margin-bottom: 0;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.45;
}

.strength-panel ul {
  display: grid;
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.strength-panel li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #312c22;
  font-size: 17px;
}

.check {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border: 2px solid var(--accent);
  background: var(--accent);
  box-shadow: 3px 3px 0 rgba(26, 24, 19, 0.16);
}

.workflow-band {
  padding: clamp(64px, 10vw, 112px) 0;
  background: var(--bg-dark);
  color: var(--on-dark);
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.workflow-band p {
  color: var(--on-dark-muted);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-steps li {
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--on-dark-border);
  background: rgba(244, 240, 231, 0.055);
}

.workflow-steps span {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.workflow-steps b {
  display: block;
  margin-top: 12px;
  font-size: 18px;
}

.related-section {
  padding: clamp(62px, 9vw, 104px) 0;
  background: #ece7dc;
  color: var(--text);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  min-height: 184px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 rgba(26, 24, 19, 0.11);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.related-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(206, 46, 34, 0.24);
}

.related-card span {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-card b {
  display: block;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 0.96;
  text-transform: uppercase;
}

.final-cta {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(70px, 10vw, 124px) 0 180px;
  background:
    linear-gradient(rgba(21, 20, 14, 0.9), rgba(21, 20, 14, 0.96)),
    url("../images/halftone-fine.jpg") center / 620px repeat;
  color: var(--on-dark);
}

.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.final-cta p {
  max-width: 720px;
  color: var(--on-dark-muted);
}

.final-cta > .affichr-footer {
  --footer-height: clamp(86px, 15vw, 148px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .af-marquee__track {
    animation: none;
  }

  .btn,
  .related-card {
    transition: none;
  }
}

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

  .site-header .btn {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .hero-grid,
  .body-grid,
  .workflow-grid,
  .final-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 560px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, var(--max));
  }

  .nav {
    min-height: 64px;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 76px);
  }

  .hero-actions,
  .final-grid {
    align-items: stretch;
  }

  .hero-actions .btn,
  .final-grid .btn {
    width: 100%;
  }

  .hero-media::before {
    left: 12px;
    top: -18px;
  }

  .body-grid,
  .workflow-grid,
  .workflow-steps {
    gap: 14px;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .case-body h2,
  .workflow-band h2,
  .related-section h2,
  .final-cta h2 {
    font-size: clamp(34px, 12vw, 54px);
  }
}
