:root {
  --jet: #0d0d0d;
  --bone: #f2efe9;
  --graphite: #363431;
  --red: #b31e1e;
  --sand: #d8d0c3;
  --line: rgba(13, 13, 13, 0.14);
  --shadow: 0 24px 80px rgba(13, 13, 13, 0.18);
  --headline: "Bebas Neue", sans-serif;
  --accent: "Space Grotesk", sans-serif;
  --body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--jet);
  background: var(--bone);
  min-height: 100vh;
}

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

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

.page-shell {
  position: relative;
  overflow: hidden;
}

.site-header,
.hero,
.value-grid,
.tiers,
.sample-content,
.testimonials,
.final-cta {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.25rem 0 0.75rem;
}

.brand {
  display: inline-flex;
  justify-content: flex-start;
}

.brand-logo {
  width: min(12rem, 34vw);
}

.ghost-link {
  margin-left: auto;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 0.18rem;
  border-bottom: 1px solid var(--jet);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 4rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.card-kicker,
.tier-label,
.value-index {
  font-family: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow,
.card-kicker {
  color: var(--red);
  font-size: 0.82rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.95;
  font-family: var(--headline);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(5.5rem, 11vw, 7.5rem);
  max-width: 7ch;
  margin-top: 0.5rem;
  line-height: 0.9;
}

.headline-line {
  display: block;
  white-space: nowrap;
}

.headline-line-small {
  font-size: 75px;
  line-height: 0.95;
}

.headline-mark {
  display: inline-block;
  padding: 0 0.18em;
  background: var(--red);
  color: var(--bone);
  line-height: 0.92;
}

.hero-text,
.signup-card p,
.final-cta p,
.value-card p,
.tier-card li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(13, 13, 13, 0.82);
}

.hero-text {
  max-width: 40rem;
  margin: 1rem 0 0;
}

.ghost-link:hover {
  border-color: var(--red);
  color: var(--red);
}

.signup-card {
  position: relative;
  padding: 1rem 0 0 2rem;
  border-left: 2px solid var(--jet);
}

.signup-card h2 {
  font-size: 2.5rem;
  margin-top: 0.5rem;
}

.embed-frame {
  margin: 1.1rem 0 0.6rem;
  overflow: hidden;
  max-width: 480px;
  background: #fff;
}

#substack-embed {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 150px;
}

.embed-note {
  margin: 1rem 0 0.9rem;
  font-size: 0.92rem;
  max-width: 28rem;
}

.embed-note code {
  font-family: var(--accent);
  font-size: 0.88rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 2.5rem 0;
  border-top: 2px solid var(--jet);
  border-bottom: 2px solid var(--jet);
}

.value-card {
  padding: 0.75rem 1.2rem 0.75rem 0;
  border-right: 1px solid rgba(13, 13, 13, 0.16);
}

.value-card:last-child {
  border-right: 0;
}

.value-index {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--red);
  font-size: 0.82rem;
}

.value-card h3,
.tier-card h3 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.tiers {
  padding: 1.5rem 0 2.5rem;
  position: relative;
}

.tiers::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6rem;
  height: 0.35rem;
  background: var(--red);
}

.section-heading {
  max-width: 50rem;
}

.section-heading h2 {
  font-size: 2.5rem;
  margin-top: 0.55rem;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 1.4rem;
}

.tier-card {
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--jet);
}

.tier-card-featured {
  position: relative;
}

.tier-card-featured::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 5rem;
  height: 2px;
  background: var(--red);
}

.tier-card ul {
  padding-left: 1.1rem;
  margin: 1rem 0 0;
}

.tier-card li + li {
  margin-top: 0.65rem;
}

.sample-content,
.testimonials,
.final-cta {
  padding: 2rem 0 0;
}

.sample-content {
  border-top: 2px solid var(--jet);
}

.video-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: start;
}

.video-feature,
.video-card,
.testimonial {
  padding-top: 1rem;
  border-top: 1px solid var(--jet);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(13, 13, 13, 0.9) 0 2px,
      rgba(13, 13, 13, 0.72) 2px 4px
    ),
    var(--graphite);
  margin-bottom: 1rem;
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(242, 239, 233, 0.05), rgba(242, 239, 233, 0.05)),
    repeating-linear-gradient(
      0deg,
      transparent 0 24px,
      rgba(242, 239, 233, 0.08) 24px 25px
    );
}

.video-frame-small {
  aspect-ratio: 4 / 3;
}

.video-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: inline-block;
  background: var(--red);
  color: var(--bone);
  padding: 0.35rem 0.55rem;
  font-family: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.video-feature h3,
.video-card h3 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.video-feature p,
.video-card p,
.testimonial p,
.testimonial cite {
  color: rgba(13, 13, 13, 0.82);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.testimonial {
  margin: 0;
}

.testimonial p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.testimonial cite {
  font-style: normal;
  font-family: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.final-cta {
  margin-bottom: 4rem;
  padding: 2rem 0 0;
  text-align: center;
  border-top: 2px solid var(--jet);
}

.final-cta p {
  max-width: 42rem;
  margin: 1rem auto 1.5rem;
}

@media (max-width: 980px) {
  .hero,
  .value-grid,
  .tier-grid,
  .video-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1rem;
  }

  .brand-logo {
    width: min(10rem, 50vw);
  }

  .signup-card {
    padding: 1rem 0 0;
    border-left: 0;
    border-top: 2px solid var(--jet);
  }

  .value-card {
    border-right: 0;
    border-bottom: 1px solid rgba(13, 13, 13, 0.16);
    padding-right: 0;
  }

  .value-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    max-width: 100%;
  }

  .hero-actions,
  .cta-stack {
    flex-direction: column;
  }

  .button,
  .ghost-link {
    width: 100%;
    text-align: center;
  }
  .final-cta {
    padding: 1.5rem 0 0;
  }
}
