:root {
  --trail-bg: #f5efe4;
  --trail-ink: #111111;
  --trail-muted: #676156;
  --trail-line: rgba(17, 17, 17, 0.1);
  --trail-cream: #fffaf2;
  --trail-accent: #c84436;
  --trail-forest: #203b33;
  --trail-sky: #dbe9ed;
  --trail-shadow: 0 26px 70px rgba(34, 30, 24, 0.15);
}

.trailfold-page {
  min-height: 100vh;
  color: var(--trail-ink);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #fffaf2 0%, var(--trail-bg) 46%, #e8ddce 100%);
  background-size: 92px 92px, 100% 100%;
}

.trail-nav,
.trail-hero,
.trail-section,
.trail-final,
.trail-footer {
  width: min(1180px, calc(100% - clamp(28px, 7vw, 88px)));
  margin: 0 auto;
}

.trail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.trail-brand,
.trail-nav nav,
.trail-proof,
.trail-actions {
  display: flex;
  align-items: center;
}

.trail-brand {
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.trail-brand img {
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
}

.trail-nav nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  color: var(--trail-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.trail-nav a {
  text-decoration: none;
}

.trail-nav-download {
  padding: 9px 12px;
  border: 1px solid var(--trail-line);
  border-radius: 8px;
  color: var(--trail-ink);
  background: rgba(255, 250, 242, 0.7);
}

.trail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
  padding: clamp(34px, 6vw, 70px) 0 clamp(52px, 8vw, 100px);
}

.trail-kicker {
  margin: 0 0 14px;
  color: var(--trail-accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trail-hero h1,
.trail-section-heading h2,
.trail-watch h2,
.trail-final h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

.trail-hero h1 {
  max-width: 720px;
  font-size: clamp(4rem, 12vw, 9.6rem);
  line-height: 0.84;
}

.trail-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--trail-muted);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  line-height: 1.72;
}

.trail-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trail-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.trail-button:hover {
  transform: translateY(-1px);
}

.trail-button-primary {
  color: #ffffff;
  background: var(--trail-ink);
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.18);
}

.trail-button-primary:hover {
  background: var(--trail-accent);
}

.trail-button-secondary {
  color: var(--trail-forest);
  border: 1px solid rgba(32, 59, 51, 0.24);
  background: rgba(255, 250, 242, 0.72);
}

.trail-proof {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.trail-proof span {
  padding: 7px 10px;
  border: 1px solid var(--trail-line);
  border-radius: 8px;
  color: var(--trail-muted);
  background: rgba(255, 250, 242, 0.74);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
}

.trail-hero-media {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 9 / 16;
  justify-self: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 225, 179, 0.82), transparent 36%),
    linear-gradient(180deg, #8fb7d2 0%, #f3bf88 62%, #182a36 100%);
  box-shadow: var(--trail-shadow);
}

.trail-hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trail-section {
  padding: clamp(50px, 8vw, 96px) 0;
}

.trail-section-heading {
  max-width: 760px;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.trail-section-heading h2,
.trail-watch h2,
.trail-final h2 {
  font-size: clamp(2.1rem, 5.4vw, 5rem);
  line-height: 0.95;
}

.trail-feature-band {
  border-top: 1px solid var(--trail-line);
}

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

.trail-feature-grid article {
  padding: 0 0 0 16px;
  border-left: 1px solid rgba(200, 68, 54, 0.42);
}

.trail-feature-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--trail-accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.trail-feature-grid h3 {
  margin-bottom: 9px;
  font-size: 1.2rem;
}

.trail-feature-grid p,
.trail-watch p {
  margin: 0;
  color: var(--trail-muted);
  line-height: 1.72;
}

.trail-screens {
  width: 100%;
  max-width: none;
  padding-right: clamp(16px, 4vw, 42px);
  padding-left: clamp(16px, 4vw, 42px);
  background: rgba(255, 250, 242, 0.52);
}

.trail-screens .trail-section-heading {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.trail-screen-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 34px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.trail-screen-row figure {
  margin: 0;
}

.trail-screen-row img,
.trail-watch img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 736 / 1600;
  object-fit: contain;
  border: 8px solid #101010;
  border-radius: 34px;
  background: #f7f1e8;
  box-shadow: var(--trail-shadow);
}

.trail-screen-row figcaption {
  margin-top: 12px;
  color: var(--trail-muted);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.trail-watch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.trail-watch p {
  max-width: 640px;
  margin-top: 22px;
  font-size: 1.05rem;
}

.trail-final {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: clamp(56px, 9vw, 104px) 0;
  border-top: 1px solid var(--trail-line);
  text-align: center;
}

.trail-final img {
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.16);
}

.trail-final h2 {
  max-width: 820px;
}

.trail-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--trail-line);
  color: var(--trail-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.trail-footer a {
  text-decoration: none;
}

@media (max-width: 960px) {
  .trail-hero,
  .trail-watch {
    grid-template-columns: 1fr;
  }

  .trail-hero-media {
    width: min(420px, 100%);
  }

  .trail-feature-grid {
    grid-template-columns: 1fr;
  }

  .trail-watch img {
    width: min(380px, 100%);
  }
}

@media (max-width: 760px) {
  .trail-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .trail-nav nav {
    justify-content: flex-start;
  }

  .trail-hero h1 {
    font-size: clamp(3.4rem, 18vw, 5.3rem);
    line-height: 0.9;
  }

  .trail-screen-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }

  .trail-screen-row figure {
    flex: 0 0 min(76vw, 330px);
    scroll-snap-align: start;
  }

  .trail-hero-media {
    width: min(360px, 100%);
  }
}

@media (max-width: 460px) {
  .trail-nav,
  .trail-hero,
  .trail-section,
  .trail-final,
  .trail-footer {
    width: calc(100% - 26px);
  }

  .trail-actions,
  .trail-button {
    width: 100%;
  }

  .trail-proof {
    align-items: stretch;
    flex-direction: column;
  }

  .trail-proof span {
    width: 100%;
  }
}
