:root {
  color-scheme: dark;
  --ink: #080706;
  --charcoal: #12100e;
  --panel: #191511;
  --panel-2: #231d18;
  --cream: #f7ead0;
  --paper: #fff8ea;
  --muted: #b9b0a5;
  --quiet: #837b73;
  --line: rgba(247, 234, 208, 0.16);
  --brass: #d9b67b;
  --teal: #8eb7ad;
  --oxide: #a76557;
  --moss: #99a77f;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(247, 234, 208, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(247, 234, 208, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: 80px 80px, 80px 80px, auto;
  color: var(--cream);
  font-size: 16px;
  line-height: 1.6;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 255, 255, 0.18) 2px 3px),
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(0, 0, 0, 0.22) 3px 4px);
  mix-blend-mode: overlay;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid transparent;
  background: rgba(8, 7, 6, 0.42);
  backdrop-filter: blur(18px);
  transition: background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(8, 7, 6, 0.9);
}

.brand,
.header-cta,
.button,
.nav-links a,
.closing-links a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-size: 1.22rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover,
.closing-links a:hover {
  color: var(--paper);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--paper);
  font-size: 0.9rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 132px clamp(22px, 5vw, 72px) 88px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(115% 85% at 82% 16%, rgba(217, 182, 123, 0.16), transparent 55%),
    radial-gradient(95% 80% at 10% 88%, rgba(142, 183, 173, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(8, 7, 6, 0.25) 0%, rgba(8, 7, 6, 0.78) 68%, var(--ink) 100%),
    var(--ink);
}

.hero::after {
  content: "WITNESS";
  position: absolute;
  right: -0.12em;
  bottom: -0.16em;
  z-index: -1;
  max-width: 100%;
  overflow: hidden;
  color: rgba(247, 234, 208, 0.045);
  font-family: "Fraunces", serif;
  font-size: clamp(9rem, 24vw, 24rem);
  line-height: 1;
  pointer-events: none;
}

.hero-inner {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-tiles {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-tile {
  width: clamp(158px, 19vw, 232px);
  border-radius: 14px;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.55);
}

.hero-tile-1 {
  z-index: 2;
  transform: translateY(-18px);
}

.hero-tile-2 {
  z-index: 1;
  margin-left: -44px;
  transform: translateY(34px);
  opacity: 0.82;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  line-height: 0.98;
}

h1 {
  margin-bottom: 26px;
  max-width: 100%;
  font-size: clamp(3rem, 11vw, 9.5rem);
  overflow-wrap: break-word;
  hyphens: none;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
}

h3 {
  margin-bottom: 12px;
  color: var(--paper);
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-lede {
  width: min(620px, 100%);
  color: var(--paper);
  font-size: clamp(1.06rem, 2vw, 1.38rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-weight: 700;
}

.button.primary {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.button.secondary {
  color: var(--paper);
}

.hero-caption {
  margin: 22px 0 0;
  color: var(--quiet);
  font-size: 0.9rem;
}

.marquee-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: var(--charcoal);
}

.marquee-strip span {
  padding: 20px clamp(16px, 3vw, 32px);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
}

.marquee-strip span:last-child {
  border-right: 0;
}

.section {
  padding: clamp(80px, 12vw, 150px) clamp(22px, 5vw, 72px);
}

.intro-grid,
.privacy-section,
.manifesto-section {
  width: min(1220px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(36px, 8vw, 100px);
  align-items: start;
}

.section-copy p,
.manifesto-copy p,
.privacy-copy p,
.pricing-header p,
.proof-item p,
.price-card span,
.site-footer {
  color: var(--muted);
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.proof-item,
.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 234, 0.035);
}

.proof-item {
  min-height: 188px;
  padding: 24px;
}

.proof-item span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--teal);
  font-weight: 700;
}

.screen-gallery {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(142, 183, 173, 0.08), transparent 36%),
    linear-gradient(315deg, rgba(167, 101, 87, 0.09), transparent 38%),
    #0d0b09;
}

.gallery-header {
  width: min(900px, 100%);
  margin-bottom: 46px;
}

.screen-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: min(1320px, 100%);
  margin: 0 auto;
  align-items: start;
}

.screen-card {
  margin: 0;
}

.screen-card img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5);
}

.manifesto-section {
  align-items: center;
}

.manifesto-mark {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream);
}

.manifesto-copy {
  max-width: 680px;
}

.text-link {
  color: var(--brass);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.privacy-section {
  align-items: center;
  border-top: 1px solid var(--line);
}

.privacy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.privacy-list li {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.privacy-list strong {
  color: var(--paper);
}

.privacy-list span {
  color: var(--muted);
}

.pricing-section {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(217, 182, 123, 0.08), transparent 30%),
    linear-gradient(270deg, rgba(142, 183, 173, 0.08), transparent 32%),
    var(--charcoal);
}

.pricing-header {
  width: min(860px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.pricing-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.price-card {
  min-height: 256px;
  padding: 26px;
}

.price-card.featured {
  border-color: rgba(217, 182, 123, 0.66);
  background: rgba(217, 182, 123, 0.08);
}

.badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--teal);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.featured .badge {
  background: var(--brass);
}

.price {
  margin-bottom: 22px;
  color: var(--cream);
  font-family: "Fraunces", serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
}

.closing-section {
  position: relative;
  min-height: 78svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.closing-art {
  position: absolute;
  inset: auto auto 7% 50%;
  width: min(70vw, 820px);
  transform: translateX(-50%);
  opacity: 0.12;
}

.closing-copy {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
}

.closing-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 26px clamp(22px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #060504;
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(34px, 7vw, 56px);
  }

  .hero-tiles {
    justify-content: flex-start;
  }

  .hero-tile-2 {
    display: none;
  }

  .hero-tile-1 {
    width: clamp(200px, 42vw, 300px);
    transform: none;
  }

  .intro-grid,
  .privacy-section,
  .manifesto-section,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .screen-track {
    display: flex;
    grid-template-columns: none;
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }

  .screen-track::-webkit-scrollbar {
    display: none;
  }

  .screen-card {
    flex: 0 0 auto;
    width: min(62vw, 300px);
    scroll-snap-align: center;
  }
}

@media (max-width: 780px) {
  .site-header {
    position: absolute;
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 92svh;
    padding-top: 112px;
  }

  .hero-actions,
  .closing-links {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .marquee-strip {
    grid-template-columns: 1fr;
  }

  .marquee-strip span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .marquee-strip span:last-child {
    border-bottom: 0;
  }

  .privacy-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer {
    display: grid;
  }
}

/* ---------------------------------------------------------------------------
   Legal sub-pages (privacy / terms / support)
   Reusable reading layout + header/footer helpers that match the homepage.
   --------------------------------------------------------------------------- */
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer .footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  color: var(--paper);
}

.legal {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(118px, 16vw, 168px) clamp(22px, 5vw, 24px) 100px;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: break-word;
}

.legal .eyebrow {
  display: block;
}

.legal h1 {
  margin-bottom: 14px;
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.04;
  color: var(--paper);
}

.legal h2 {
  margin-top: 56px;
  margin-bottom: 12px;
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  line-height: 1.2;
  color: var(--paper);
}

.legal h3 {
  margin-top: 32px;
  margin-bottom: 8px;
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--paper);
}

.legal p,
.legal li {
  font-size: 1.02rem;
  color: var(--muted);
}

.legal p {
  margin-bottom: 16px;
}

.legal strong {
  color: var(--paper);
  font-weight: 600;
}

.legal a {
  color: var(--brass);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.legal a:hover {
  text-decoration: underline;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 6px;
}

.legal code {
  font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  font-size: 0.9em;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.legal .updated {
  color: var(--quiet);
  font-size: 0.85rem;
}

.legal hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* Fixed layout + wrapping keeps wide tables inside the reading column on
   narrow screens instead of forcing horizontal page overflow. */
.legal table {
  width: 100%;
  margin: 16px 0 24px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

.legal th {
  color: var(--paper);
  font-weight: 600;
}

/* Terms callout ("as is" / mental-health notice) */
.legal .warning {
  margin: 24px 0;
  padding: 4px 20px;
  border-left: 3px solid var(--brass);
  border-radius: 0 8px 8px 0;
  background: rgba(217, 182, 123, 0.06);
}

/* Support page: slightly wider reading column + contact cards */
.legal.support {
  width: min(820px, 100%);
}

.support-grid {
  margin-top: 40px;
  display: grid;
  gap: 16px;
}

.support-card {
  padding: 28px clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 248, 234, 0.035);
  transition: border-color 0.25s ease;
}

.support-card:hover {
  border-color: rgba(217, 182, 123, 0.5);
}

.support-card h3 {
  margin: 0 0 8px;
}

.support-card p {
  margin: 0;
}

.support-note {
  margin-top: 40px;
  color: var(--quiet);
  font-size: 0.85rem;
}
