@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --red: #cd1717;
  --red-deep: #a3140f;
  --hole: #8e1210;
  --brass: #c8902e;
  --brass-soft: #f3e3c4;
  --cream: #f4ebdd;
  --paper: #f4efe6;
  --card: #fffcf7;
  --ink: #231f1c;
  --steel: #6b655e;
  --line: #e3dacb;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); }
a:focus-visible, .btn:focus-visible, summary:focus-visible, .gallery__strip:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 15px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--red-deep); margin: 0 0 12px; }

/* pegboard: the app's red header motif */
.pegboard {
  background-color: var(--red);
  background-image: radial-gradient(circle, var(--hole) 0 3.5px, transparent 4.5px);
  background-size: 34px 34px;
  background-position: 17px 17px;
}

.topbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 5; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: .02em; }
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #f6e9d3; text-decoration: none; font: 600 16px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 12px 10px; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--red); color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 4px; font: 700 18px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 2px solid var(--ink); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--disabled { background: var(--cream); color: var(--steel); border-color: var(--steel); border-style: dashed; cursor: default; }
.btn--ghost { color: var(--ink); background: transparent; }
.btn--ghost:hover { background: rgba(35, 31, 28, .06); }

/* hero: text on paper, red pegboard with hanging screens */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); }
.lead { font-size: 20px; max-width: 34em; color: #3b3531; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 24px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font: 600 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--card); }
.hero__board { position: relative; border-radius: 10px; padding: 64px 28px 0; min-height: 600px; display: flex; justify-content: center; align-items: flex-start; gap: 0; }
.hero__board { background-color: var(--red); background-image: radial-gradient(circle, var(--hole) 0 3.5px, transparent 4.5px); background-size: 34px 34px; background-position: 17px 17px; }
.tagged { margin: 0; position: relative; background: var(--cream); padding: 44px 12px 12px; border-radius: 6px; box-shadow: 0 18px 40px rgba(60, 8, 6, .35); }
.tagged::before { content: ""; position: absolute; left: 50%; top: 12px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--brass); box-shadow: inset 0 0 0 5px var(--brass), inset 0 0 0 9px var(--red-deep); }
.tagged::after { content: ""; position: absolute; left: 50%; top: -38px; width: 2px; height: 52px; background: var(--ink); transform-origin: top; }
.tagged__label { position: absolute; left: 14px; top: 12px; font: 600 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--red-deep); }
.tagged img { border-radius: 14px; border: 6px solid var(--ink); }
.tagged--main { width: 62%; z-index: 2; }
.tagged--side { width: 50%; margin-left: -18%; margin-top: 120px; z-index: 1; }

/* route: a chain of numbered links */
.route { background: var(--ink); color: #f6e9d3; padding: 64px 0; }
.route .section-title { color: #fff; }
.route__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.route__steps li { position: relative; padding: 0 18px 0 0; }
.route__steps li::before { content: ""; position: absolute; top: 25px; left: 52px; right: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--brass) 0 14px, transparent 14px 20px); }
.route__steps li:last-child::before { display: none; }
.route__n { position: relative; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--cream); color: var(--ink); font: 700 26px/1 var(--display); box-shadow: inset 0 0 0 8px var(--cream), inset 0 0 0 11px var(--brass); }
.route h3 { font-size: 24px; margin: 18px 0 6px; color: #fff; }
.route p { margin: 0; font-size: 16px; color: #d9cdbb; }

.section-title { font-size: clamp(34px, 4.4vw, 52px); }
.section-title::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--brass); margin-right: 14px; vertical-align: .18em; }

.features { padding: 80px 0 40px; }
.feature { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; padding: 40px 0; border-top: 2px solid var(--ink); }
.feature--flip { grid-template-columns: 1fr 340px; }
.feature--flip .feature__shot { order: 2; }
.feature__shot img { border-radius: 18px; border: 7px solid var(--ink); box-shadow: 14px 14px 0 var(--brass-soft); }
.feature h3 { font-size: clamp(30px, 3.4vw, 42px); }
.feature__text p { max-width: 36em; }
.ticks { padding: 0; margin: 16px 0 0; list-style: none; }
.ticks li { padding-left: 30px; position: relative; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }

.gallery { padding: 72px 0; color: #fff; background-color: var(--red); background-image: radial-gradient(circle, var(--hole) 0 3.5px, transparent 4.5px); background-size: 34px 34px; }
.section-title--light { color: #fff; }
.section-title--light::before { background: var(--cream); }
.gallery__hint { margin: -6px 0 28px; color: #ffe2b8; }
.gallery__strip { display: flex; gap: 22px; overflow-x: auto; padding: 8px max(20px, calc((100% - 1180px) / 2)) 24px; scroll-snap-type: x mandatory; }
.card-shot { margin: 0; flex: 0 0 230px; scroll-snap-align: start; background: var(--cream); padding: 10px 10px 12px; border-radius: 6px; box-shadow: 0 14px 30px rgba(60, 8, 6, .35); }
.card-shot img { border-radius: 10px; border: 4px solid var(--ink); }
.card-shot figcaption { color: var(--ink); font: 700 19px/1.2 var(--display); margin-top: 10px; }
.card-shot figcaption span { color: var(--red-deep); font-weight: 600; font-size: 15px; letter-spacing: .08em; margin-right: 4px; }
.gallery__tablet { display: grid; grid-template-columns: 420px 1fr; gap: 32px; align-items: center; margin-top: 40px; }
.gallery__tablet img { border-radius: 16px; border: 8px solid var(--ink); background: var(--ink); }
.gallery__tablet p { font: 700 30px/1.15 var(--display); max-width: 14em; }

.promise { padding: 72px 0; }
.promise__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.promise li { background: var(--card); border: 1.5px solid var(--line); border-left: 6px solid var(--red); padding: 16px 18px; border-radius: 4px; }

.faq { padding: 24px 0 72px; }
.faq details { border-top: 2px solid var(--ink); padding: 4px 0; max-width: 860px; }
.faq details:last-of-type { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; font: 700 24px/1.2 var(--display); padding: 16px 36px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 32px; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; max-width: 46em; }

.download { background: var(--brass-soft); border-top: 2px solid var(--ink); padding: 36px 0; }
.download__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.download__inner img { border-radius: 22px; }
.download__inner div { flex: 1 1 260px; }
.download h2 { font-size: 34px; margin: 0; }
.download p { margin: 4px 0 0; color: #4a443f; }

.footer { background: var(--ink); color: #d9cdbb; padding: 40px 0 20px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__brand img { background: var(--cream); padding: 10px 14px; border-radius: 8px; }
.footer__brand p { max-width: 30em; }
.footer a { color: #ffc9a8; }
.footer__label { font: 600 15px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer__links p { margin: 8px 0; }
.footer__legal { border-top: 1px solid #4a443f; margin-top: 24px; padding-top: 16px; font-size: 14px; }

.legal { padding: 56px 0 80px; }
.legal__wrap { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); }
.legal h2 { font-size: 28px; margin-top: 36px; padding-top: 18px; border-top: 2px solid var(--ink); }
.legal__meta { color: var(--steel); }
.legal li { margin: 6px 0; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__board { min-height: 0; padding: 56px 16px 32px; }
  .route__steps { grid-template-columns: 1fr; gap: 26px; }
  .route__steps li { padding: 0 0 0 72px; }
  .route__steps li::before { display: none; }
  .route__n { position: absolute; left: 0; top: 0; }
  .route h3 { margin-top: 10px; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 28px; }
  .feature--flip .feature__shot { order: 0; }
  .feature__shot { max-width: 300px; }
  .gallery__tablet { grid-template-columns: 1fr; }
  .gallery__tablet img { max-width: 420px; }
  .promise__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .topbar__inner { padding: 8px 0; }
  .nav a { padding: 10px 6px; font-size: 14px; }
  .lead { font-size: 18px; }
  .tagged--side { display: none; }
  .tagged--main { width: 86%; }
  .card-shot { flex-basis: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
