:root {
  --ink: #151512;
  --charcoal: #25231f;
  --paper: #f4efe4;
  --paper-deep: #dfd2bc;
  --mist: #b9beb6;
  --jade: #3f665a;
  --cinnabar: #9d3328;
  --sky: #5d7180;
  --line: rgba(21, 21, 18, 0.14);
  --light-line: rgba(244, 239, 228, 0.18);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body.dark {
  background: var(--ink);
  color: var(--paper);
}

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

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--paper);
  background: rgba(21, 21, 18, 0.88);
  border-bottom: 1px solid var(--light-line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(244, 239, 228, 0.5);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 43%, rgba(157, 51, 40, 0.95) 46%, rgba(157, 51, 40, 0.95) 54%, transparent 57%),
    radial-gradient(circle at 50% 50%, rgba(244, 239, 228, 0.16), transparent 62%);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 15px;
  font-weight: 700;
}

.brand small {
  margin-top: 3px;
  color: rgba(244, 239, 228, 0.66);
  font-size: 11px;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: rgba(244, 239, 228, 0.78);
  font-size: 14px;
}

.desktop-nav a[aria-current="page"],
.desktop-nav a:hover,
.nav-cta:hover,
.site-footer a:hover {
  color: #fff;
}

.nav-cta,
.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid rgba(244, 239, 228, 0.34);
  border-radius: 8px;
  padding: 0 15px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-cta {
  color: var(--paper);
  font-size: 13px;
  white-space: nowrap;
}

.mobile-menu-button,
.mobile-nav {
  display: none;
}

.mobile-menu-button {
  min-height: 42px;
  border: 1px solid rgba(244, 239, 228, 0.34);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--paper);
  background: rgba(244, 239, 228, 0.08);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.mobile-nav {
  grid-column: 1 / -1;
  border-top: 1px solid var(--light-line);
  padding-top: 10px;
}

.mobile-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(244, 239, 228, 0.12);
  color: rgba(244, 239, 228, 0.82);
  font-size: 15px;
  font-weight: 740;
}

.mobile-nav a[aria-current="page"] {
  color: #fff;
}

.button:hover,
.icon-button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--paper);
  background: var(--cinnabar);
  border-color: rgba(157, 51, 40, 0.95);
}

.button.secondary {
  color: inherit;
  background: rgba(244, 239, 228, 0.08);
  border-color: currentColor;
}

.button.ink {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 5vw, 72px) 68px;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.hero.compact {
  min-height: 440px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("./assets/hero-ritual-paper-v001.png");
  background-position: center;
  background-size: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 10, 9, 0.9), rgba(10, 10, 9, 0.62) 38%, rgba(10, 10, 9, 0.1) 75%),
    linear-gradient(0deg, rgba(10, 10, 9, 0.76), transparent 44%);
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cinnabar);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.2;
}

p,
li {
  line-height: 1.62;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(244, 239, 228, 0.84);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.signup-row,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.boundary-note {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(244, 239, 228, 0.62);
  font-size: 13px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--charcoal);
  color: var(--paper);
  border-top: 1px solid var(--light-line);
  border-bottom: 1px solid var(--light-line);
}

.trust-strip div {
  min-height: 96px;
  padding: 24px clamp(16px, 3vw, 34px);
  border-right: 1px solid var(--light-line);
  font-weight: 700;
}

.trust-strip span {
  display: block;
  margin-bottom: 8px;
  color: rgba(244, 239, 228, 0.48);
  font-size: 12px;
}

.section {
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.section.tight {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.95fr);
}

.section-copy {
  max-width: 640px;
}

.section-copy p,
.section-heading p,
.content-card p,
.offer-card p,
.policy-block p,
.library-item p,
.form-note {
  color: rgba(21, 21, 18, 0.7);
}

.dark .section-copy p,
.dark .section-heading p,
.dark .content-card p,
.dark .offer-card p,
.dark .policy-block p,
.dark .library-item p {
  color: rgba(244, 239, 228, 0.72);
}

.band .section-heading p,
.band .content-card p,
.band .offer-card p,
.band .membership-panel p,
.band .form-note {
  color: rgba(244, 239, 228, 0.72);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 30px;
}

.library-drop-heading {
  margin-top: 46px;
}

.band {
  background: var(--charcoal);
  color: var(--paper);
}

.grid-3,
.grid-2,
.offer-grid,
.library-grid,
.policy-grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2,
.offer-grid,
.library-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.policy-grid {
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  align-items: start;
}

.content-card,
.offer-card,
.signup-panel,
.membership-panel,
.policy-block,
.library-item,
.notice,
.mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: var(--shadow);
}

.band .content-card,
.band .offer-card,
.band .membership-panel,
.dark .content-card,
.dark .offer-card,
.dark .signup-panel,
.dark .policy-block,
.dark .library-item,
.dark .notice,
.dark .mini-card {
  border-color: var(--light-line);
  background: rgba(244, 239, 228, 0.07);
}

.content-card,
.offer-card,
.membership-panel,
.policy-block,
.library-item,
.notice,
.mini-card {
  min-width: 0;
  padding: 24px;
}

.media-preview {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 244, 235, 0.72);
}

.media-preview audio,
.library-audio,
.library-video {
  display: block;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.library-audio {
  margin: 16px 0 10px;
}

.library-video {
  margin: 16px 0 10px;
  aspect-ratio: 9 / 16;
  max-height: 420px;
  border-radius: 8px;
  background: var(--ink);
  object-fit: cover;
}

.signup-panel {
  padding: clamp(22px, 4vw, 34px);
  background: var(--ink);
  color: var(--paper);
}

.signup-panel label,
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(244, 239, 228, 0.28);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--paper);
  background: rgba(244, 239, 228, 0.08);
  font: inherit;
}

textarea {
  min-height: 126px;
  padding-top: 12px;
  resize: vertical;
}

.field {
  margin-bottom: 14px;
}

.icon-button {
  width: 46px;
  min-width: 46px;
  padding: 0;
  color: var(--paper);
  background: var(--cinnabar);
  border-color: var(--cinnabar);
}

.form-note,
.fine-print {
  margin: 14px 0 0;
  font-size: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.band .tag,
.dark .tag {
  color: var(--paper-deep);
}

.price {
  margin: 14px 0;
  font-size: 32px;
  font-weight: 800;
  color: var(--cinnabar);
}

.price span {
  display: block;
  margin-top: 5px;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
}

ul.clean {
  padding-left: 18px;
}

.content-meter {
  height: 76px;
  margin-bottom: 18px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(21, 21, 18, 0.08), transparent),
    repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 14px);
  color: var(--jade);
}

.content-meter.red {
  color: var(--cinnabar);
}

.content-meter.sky {
  color: var(--sky);
}

.content-meter.paper {
  color: var(--paper-deep);
}

.hero + .section,
.trust-strip + .section {
  border-top: 1px solid var(--line);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(244, 239, 228, 0.72);
  background: var(--ink);
  border-top: 1px solid var(--light-line);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--paper);
  background: var(--charcoal);
}

.status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(63, 102, 90, 0.16);
  color: var(--jade);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    position: sticky;
  }

  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav:not([hidden]) {
    display: grid;
  }

  .site-header.is-menu-open {
    background: rgba(21, 21, 18, 0.96);
  }

  .hero,
  .hero.compact {
    min-height: auto;
    padding-top: 82px;
  }

  .trust-strip,
  .split,
  .split.reverse,
  .grid-3,
  .grid-2,
  .offer-grid,
  .library-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid var(--light-line);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-actions .button,
  .actions .button,
  .signup-row input,
  .signup-row button {
    width: 100%;
  }

  .icon-button {
    min-width: 100%;
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 10px;
  }

  .hero,
  .hero.compact {
    padding: 72px 18px 40px;
  }

  .section {
    padding: 52px 18px;
  }

  .library-item {
    overflow: hidden;
    padding: 18px;
  }
}
