:root {
  --bg: #1a120a;
  --surface: #251a0f;
  --cream: #f1e9cf;
  --muted: rgba(241, 233, 207, 0.72);
  --faint: rgba(241, 233, 207, 0.5);
  --gold: #d8c08a;
  --line: rgba(241, 233, 207, 0.14);
  --glow: #3b2914;
  --button-hover: #fff8e2;
  --radius-card: 22px;
  --page-pad: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Film grain, matching the template's grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.15;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

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

.nowrap {
  white-space: nowrap;
}

/* ---------- Shared type ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: balance;
}

.inline-link {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(241, 233, 207, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.inline-link:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* ---------- Button ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px 14px 24px;
  border-radius: 45px;
  background: var(--cream);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(216, 192, 138, 0.18);
  transition: background-color 0.25s ease, transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

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

.button:active {
  transform: scale(0.97);
}

.button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- Opening section ---------- */

.intro {
  position: relative;
  padding: 88px var(--page-pad) 96px;
  background: radial-gradient(ellipse 70% 55% at 50% 35%, var(--glow) 0%, var(--bg) 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.intro-copy {
  width: 100%;
  max-width: 720px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.intro-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.display {
  font-family: "trust-1a", "Inter", serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.phone-break {
  display: none;
}

.intro-sub {
  max-width: 620px;
  margin: 0 auto;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: balance;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.cta-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cta-alt {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.on-desktop {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .on-touch {
    display: none;
  }

  .on-desktop {
    display: inline;
  }
}

.fine-print {
  max-width: 420px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--faint);
  text-wrap: balance;
}

/* ---------- Phone mockup ---------- */

.phone-stage {
  position: relative;
  height: 440px;
  padding-top: 40px;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  perspective: 1600px;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.phone-shadow {
  position: absolute;
  top: 80px;
  left: 50%;
  width: 300px;
  height: 460px;
  transform: translateX(-46%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(216, 192, 138, 0.16) 0%, rgba(0, 0, 0, 0) 65%);
  filter: blur(20px);
  pointer-events: none;
}

.phone-rise {
  --rise: 64px;
  --tilt: 38deg;
  transform: translateY(var(--rise));
  transform-style: preserve-3d;
  will-change: transform;
}

.phone3d {
  --w: 250px;
  --depth: 38px;
  --r: calc(var(--w) * 0.17);
  position: relative;
  width: var(--w);
  aspect-ratio: 402 / 874;
  transform-style: preserve-3d;
  transform: translateX(14px) rotateY(var(--tilt));
}

/* Left edge: a real 3D face, so the phone has visible thickness */
.phone-side {
  position: absolute;
  top: calc(var(--r) * 0.55);
  bottom: calc(var(--r) * 0.55);
  left: 0;
  width: var(--depth);
  transform-origin: left center;
  transform: rotateY(90deg);
  background:
    linear-gradient(270deg,
      #9aa7c2 0%,
      #66738f 7%,
      #46526d 22%,
      #3a4560 45%,
      #2c3449 72%,
      #1b2131 100%);
}

/* Rounded top and bottom of the edge where it meets the corners */
.phone-side::before,
.phone-side::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: calc(var(--r) * 0.55);
  background: inherit;
}

.phone-side::before {
  top: calc(var(--r) * -0.55 + 1px);
  border-radius: 40% 40% 0 0 / 100% 100% 0 0;
}

.phone-side::after {
  bottom: calc(var(--r) * -0.55 + 1px);
  border-radius: 0 0 40% 40% / 0 0 100% 100%;
}

.side-btn {
  position: absolute;
  left: 22%;
  right: 22%;
  border-radius: 4px;
  background: linear-gradient(270deg, #2a3248 0%, #6e7b98 45%, #8a97b3 55%, #3a4459 100%);
  box-shadow:
    0 0 0 1px rgba(10, 13, 22, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.side-action { top: 14%; height: 5%; }
.side-up { top: 23%; height: 9.5%; }
.side-down { top: 35%; height: 9.5%; }

.phone-front {
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  padding: 2%;
  background:
    linear-gradient(100deg, #a3afc8 0%, #5b6884 4%, #3a4560 18%, #2c3549 55%, #3a4560 88%, #6a7792 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.phone-glass {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--r) * 0.94);
  padding: 2.6%;
  background: #030303;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--r) * 0.82);
  overflow: hidden;
  background: #000;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-island {
  position: absolute;
  top: 2.4%;
  left: 50%;
  width: 30%;
  height: 4.2%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

/* Soft reflection across the glass */
.phone-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0) 45%);
}

/* ---------- Sections ---------- */

.section {
  padding: 96px var(--page-pad);
  display: flex;
  justify-content: center;
}

.content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.content-wide {
  max-width: 960px;
  gap: 40px;
}

.content-narrow {
  max-width: 720px;
  gap: 40px;
}

.heading {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* How it works */

.steps {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 28px 30px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
}

.step-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(216, 192, 138, 0.12);
  display: grid;
  place-items: center;
  color: var(--gold);
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.step h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

/* Series quote */

.quote-block {
  max-width: 720px;
  gap: 22px;
}

.quote {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.quote-block .lead {
  max-width: 600px;
}

/* Schedule */

.weeks {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.week {
  display: flex;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}

.week-date {
  width: 96px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.week-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.week-days {
  font-size: 14px;
  font-weight: 500;
  color: var(--faint);
}

.week-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.week-line h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.week-line p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* Join card */

.join {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 72px 32px 64px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse 80% 90% at 50% 0%, var(--glow) 0%, var(--surface) 100%);
  text-align: center;
}

.join .lead {
  max-width: 440px;
}

/* ---------- Footer ---------- */

.footer {
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  overflow: hidden;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 500;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--cream);
}

.footer-info {
  padding: 0 24px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--faint);
  text-align: center;
}

.wordmark {
  width: 100%;
  padding: 0 24px;
  container-type: inline-size;
}

.wordmark span {
  display: block;
  font-family: "trust-1a", "Inter", serif;
  font-size: 10.4cqw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  padding-bottom: 0.12em;
  background: linear-gradient(180deg, #f1e9cf 0%, rgba(232, 214, 168, 0.7) 45%, rgba(216, 192, 138, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Floating button ---------- */

.floating {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.floating .button {
  pointer-events: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 10px 30px rgba(216, 192, 138, 0.2);
  opacity: 0;
  transform: translateY(24px) scale(0.94);
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15), visibility 0s linear 0.45s;
}

.floating.is-visible .button {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15), visibility 0s;
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .floating .button {
    transition: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Privacy page ---------- */

.legal {
  padding: 72px var(--page-pad) 80px;
  display: flex;
  justify-content: center;
}

.legal-inner {
  width: 100%;
  max-width: 650px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 0.7;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.legal h1 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.legal-meta {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}

.legal-body {
  margin-top: 48px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.legal-body h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.legal-body p,
.legal-body li {
  text-wrap: pretty;
}

.legal-body ul {
  margin: 0;
  padding-left: 20px;
}

.legal-body li + li {
  margin-top: 4px;
}

.legal-body strong {
  color: var(--cream);
  font-weight: 600;
}

/* ---------- Tablet ---------- */

@media (max-width: 1199.98px) {
  .display {
    font-size: 58px;
  }
}

/* ---------- Phone ---------- */

@media (max-width: 809.98px) {
  :root {
    --page-pad: 20px;
  }

  .intro {
    padding: 64px 24px 32px;
  }

  .display {
    font-size: 44px;
    line-height: 1.02;
  }

  .phone-break {
    display: inline;
  }

  .intro-sub {
    font-size: 16px;
  }

  .section {
    padding: 64px 20px;
  }

  .h2 {
    font-size: 32px;
  }

  .quote {
    font-size: 40px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step {
    padding: 24px 24px 26px;
  }

  .join {
    padding: 56px 20px 48px;
  }

  .footer {
    padding-top: 64px;
    gap: 32px;
  }

  .footer-links {
    gap: 12px 18px;
    padding: 0 16px;
  }

  .footer-info .sep {
    display: none;
  }

  .footer-info .nowrap {
    display: block;
  }

  .footer-info br {
    display: none;
  }

  .wordmark {
    padding: 0 16px;
  }

  .legal {
    padding: 48px 24px 64px;
  }
}
