/* Manna's public website, in the day look only: every page sets data-look="day" on <html>,
   which tokens.css keeps over the visitor's dark setting. Colours, type, radii and durations come
   from the design system's tokens; motion stops entirely under reduced motion. */

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

html {
  background: var(--ground);
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--app-ground);
  font-family: var(--font-operate);
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* fine paper grain over everything; it also hides banding in the gradients */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2 0 0 0 0 .15 0 0 0 0 .08 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

a {
  color: var(--gold-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-read);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1160px, 100% - 2 * var(--space-lg));
  margin-inline: auto;
}

/* ---------- the bar ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: var(--space-sm) 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background var(--motion-entrance) ease, border-color var(--motion-entrance) ease, box-shadow var(--motion-entrance) ease;
}

.nav.is-stuck .nav-inner {
  background: rgba(252, 244, 228, 0.72);
  border-color: var(--app-surface-border);
  box-shadow: var(--app-surface-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.is-stuck .nav-inner {
    background: var(--panel);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-read);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
}

.brand svg {
  width: 20px;
  height: 22px;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  margin-left: auto;
  font-size: var(--text-sm);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--motion-press) ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: 0 var(--space-lg);
  border-radius: 999px;
  font-family: var(--font-operate);
  font-weight: var(--weight-semibold);
  font-size: var(--text-md);
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--motion-press) ease, box-shadow var(--motion-press) ease, background var(--motion-press) ease;
}

.btn-gold {
  color: var(--on-gold);
  background: linear-gradient(180deg, #b98429, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 24px -10px rgba(138, 94, 31, 0.7);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 16px 30px -12px rgba(138, 94, 31, 0.8);
}

.btn-ghost {
  color: var(--ink);
  background: var(--app-surface);
  border: 1px solid var(--app-surface-border);
}

.btn-ghost:hover {
  background: var(--app-tappable-held);
}

.btn-sm {
  min-height: 40px;
  padding: 0 var(--space-md);
  font-size: var(--text-sm);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- shared pieces ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--overline-tracking);
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow svg {
  flex: none;
  width: 12px;
  height: 13px;
}

.section {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  margin: var(--space-sm) 0 var(--space-md);
}

.section-head p {
  font-size: var(--text-lg);
  color: var(--muted);
}

.gold-text {
  background: linear-gradient(100deg, var(--gold-deep) 0%, #c8912f 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* the phone frame every screen sits in */
.phone {
  position: relative;
  width: var(--phone-w, 270px);
  aspect-ratio: 390 / 844;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(150deg, #5a4a37 0%, var(--ink) 40%, #1f1912 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 2px 0 rgba(255, 255, 255, 0.12) inset,
    0 40px 80px -30px rgba(80, 55, 20, 0.55),
    0 18px 36px -18px rgba(50, 42, 32, 0.45);
}

.phone::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  width: 30%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #15110c;
  z-index: 2;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 38px;
}

.phone::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 38px;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 38%);
}

.glass {
  background: rgba(255, 251, 242, 0.7);
  border: 1px solid var(--app-surface-border);
  box-shadow: var(--app-surface-shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* the warm glow that drifts behind a section */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.75;
  animation: drift 26s ease-in-out infinite alternate;
}

.aurora span:nth-child(1) {
  width: 520px;
  height: 520px;
  top: -140px;
  right: -60px;
  background: var(--app-glow-1);
}

.aurora span:nth-child(2) {
  width: 440px;
  height: 440px;
  top: 220px;
  right: 22%;
  background: var(--app-glow-2);
  opacity: 0.45;
  animation-duration: 32s;
  animation-delay: -8s;
}

.aurora span:nth-child(3) {
  width: 380px;
  height: 380px;
  bottom: -120px;
  left: -100px;
  background: var(--app-glow-1);
  animation-duration: 38s;
  animation-delay: -14s;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-40px, 30px, 0) scale(1.08);
  }
  100% {
    transform: translate3d(30px, -20px, 0) scale(0.96);
  }
}

/* a faint drafting grid that fades out from the centre */
.grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(138, 94, 31, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(138, 94, 31, 0.09) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2xl);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  font-size: var(--text-sm);
  color: var(--ink);
  text-decoration: none;
}

.pill b {
  font-weight: var(--weight-semibold);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-gold);
  background: var(--ink);
  padding: 3px 10px;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: var(--space-lg) 0;
}

.hero h1 em {
  display: block;
  font-size: 0.8em;
  font-style: italic;
  font-weight: var(--weight-regular);
}

.hero-lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-xl) 0 var(--space-lg);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  font-size: var(--text-sm);
  color: var(--muted);
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-facts svg {
  width: 16px;
  height: 16px;
  color: var(--ok);
}

/* three phones, the middle one forward, tilting a little toward the pointer */
.stage {
  position: relative;
  height: clamp(520px, 50vw, 640px);
  perspective: 1400px;
}

.stage-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--tx, 0) * 10deg)) rotateX(calc(var(--ty, 0) * -8deg));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.stage .phone {
  position: absolute;
  top: 50%;
  left: 50%;
}

.stage .p-center {
  --phone-w: clamp(230px, 21vw, 280px);
  transform: translate(-50%, -50%) translateZ(60px);
  z-index: 3;
}

.stage .p-left {
  --phone-w: clamp(190px, 17vw, 232px);
  transform: translate(-112%, -46%) rotate(-7deg) translateZ(-40px);
  z-index: 1;
}

.stage .p-right {
  --phone-w: clamp(190px, 17vw, 232px);
  transform: translate(12%, -54%) rotate(7deg) translateZ(-40px);
  z-index: 2;
}

.chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: 18px;
  font-size: var(--text-sm);
  line-height: 1.3;
  animation: float 7s ease-in-out infinite;
}

.chip strong {
  display: block;
  font-family: var(--font-read);
  font-size: var(--text-md);
}

.chip span {
  color: var(--muted);
  font-size: var(--text-xs);
}

.chip .dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--gold);
}

.chip .dot svg {
  width: 16px;
  height: 18px;
}

.chip-a {
  top: 9%;
  left: -2%;
}

.chip-b {
  bottom: 12%;
  right: -4%;
  animation-delay: -2.5s;
}

.chip-c {
  bottom: 4%;
  left: 4%;
  animation-delay: -4.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- the strip of plain truths ---------- */

.strip {
  border-block: 1px solid var(--hair);
  background: rgba(252, 244, 228, 0.5);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent);
}

.strip-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.strip:hover .strip-track {
  animation-play-state: paused;
}

.strip ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.strip li {
  display: flex;
  align-items: center;
  padding: var(--space-md) 0 var(--space-md) var(--space-lg);
  font-family: var(--font-read);
  font-size: var(--text-lg);
  white-space: nowrap;
}

.strip li::after {
  content: "";
  width: 9px;
  height: 10px;
  margin-left: var(--space-lg);
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 22'><path d='M10 1.5 C7.2 5.2 4.5 7.6 4.5 12 a5.5 5.5 0 0 0 11 0 C15.5 7.6 12.8 5.2 10 1.5 Z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 22'><path d='M10 1.5 C7.2 5.2 4.5 7.6 4.5 12 a5.5 5.5 0 0 0 11 0 C15.5 7.6 12.8 5.2 10 1.5 Z'/></svg>") center / contain no-repeat;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- a day with Manna: steps beside a pinned phone ---------- */

.tour {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-3xl);
}

.tour-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tour-step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: var(--space-xl);
  border-left: 2px solid var(--hair);
  transition: border-color var(--motion-entrance) ease, opacity var(--motion-entrance) ease;
  opacity: 0.4;
}

.tour-step.is-active {
  border-left-color: var(--gold);
  opacity: 1;
}

.tour-step .num {
  font-family: var(--font-read);
  font-size: var(--text-sm);
  color: var(--gold-deep);
  margin-bottom: var(--space-xs);
  font-variant-numeric: tabular-nums;
}

.tour-step h3 {
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.tour-step p {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 30em;
}

.tour-step .phone {
  display: none;
}

.tour-pin {
  position: sticky;
  top: 12vh;
  height: 76vh;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.tour-pin .phone {
  --phone-w: min(300px, 34vh);
}

.tour-pin .phone img {
  position: absolute;
  inset: 9px;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.tour-pin .phone img.is-on {
  opacity: 1;
  transform: none;
}

.tour-glow {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--app-glow-2);
  filter: blur(90px);
  opacity: 0.4;
  z-index: -1;
}

/* ---------- bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-md);
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: var(--space-xl);
  background: rgba(252, 244, 228, 0.62);
  border: 1px solid rgba(169, 119, 31, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 24px 48px -32px rgba(122, 92, 40, 0.45);
  isolation: isolate;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--motion-entrance) ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 233, 184, 0.9), transparent 60%);
}

.tile:hover::before {
  opacity: 1;
}

.tile h3 {
  font-size: var(--text-xl);
  margin: var(--space-sm) 0 var(--space-xs);
}

.tile p {
  color: var(--muted);
  max-width: 28em;
}

.tile .fig {
  font-size: var(--text-xs);
  letter-spacing: var(--overline-tracking);
  text-transform: uppercase;
  color: var(--faint);
}

.t-wide {
  grid-column: span 4;
}

.t-third {
  grid-column: span 2;
}

.t-half {
  grid-column: span 3;
}

/* the explanation tile: a verse with a phrase that opens Manna's note */
.mini-reader {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.mini-verse {
  font-family: var(--font-read);
  font-size: var(--text-scripture);
  line-height: var(--text-scripture-line-height);
}

.mini-verse sup {
  font-size: var(--text-2xs);
  color: var(--gold-deep);
  margin-right: 2px;
}

.mini-verse mark {
  background: none;
  color: inherit;
  text-decoration: underline dotted var(--gold);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.mini-note {
  border-radius: 20px;
  padding: var(--space-md) var(--space-lg);
  background: var(--field);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -24px rgba(122, 92, 40, 0.5);
}

.mini-note .eyebrow {
  font-size: var(--text-2xs);
}

.mini-note strong {
  display: block;
  font-family: var(--font-read);
  font-size: var(--text-lg);
  margin: var(--space-2xs) 0;
}

.mini-note p {
  font-size: var(--text-sm);
}

.mini-note small {
  display: block;
  margin-top: var(--space-xs);
  color: var(--gold-deep);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xs);
}

/* the streak tile */
.big-number {
  font-family: var(--font-read);
  font-weight: var(--weight-semibold);
  font-size: clamp(64px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-top: var(--space-lg);
}

.big-number small {
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  color: var(--muted);
  letter-spacing: 0;
  margin-left: var(--space-2xs);
}

.week {
  display: flex;
  gap: 6px;
  margin-top: var(--space-md);
}

.week i {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.week i:last-child {
  background: var(--rail);
}

/* the review deck tile: cards that fan out */
.deck {
  position: relative;
  height: 176px;
  margin-top: var(--space-lg);
}

.deck div {
  position: absolute;
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-md);
  border-radius: 16px;
  background: var(--field);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  box-shadow: 0 12px 24px -18px rgba(122, 92, 40, 0.6);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.deck div span {
  color: var(--faint);
  font-weight: var(--weight-regular);
  white-space: nowrap;
}

.deck div:nth-child(1) {
  top: 0;
  transform: scale(0.9);
  opacity: 0.7;
}

.deck div:nth-child(2) {
  top: 34px;
  transform: scale(0.95);
  opacity: 0.85;
}

.deck div:nth-child(3) {
  top: 68px;
}

.tile:hover .deck div:nth-child(1) {
  transform: translateY(-6px) rotate(-3deg) scale(0.92);
}

.tile:hover .deck div:nth-child(2) {
  transform: translateY(6px) rotate(2deg) scale(0.96);
}

.tile:hover .deck div:nth-child(3) {
  transform: translateY(26px);
}

/* the hour tile */
.hours {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.hours div {
  text-align: center;
  padding: var(--space-sm) var(--space-2xs);
  border-radius: 14px;
  background: var(--app-tappable);
  border: 1px solid var(--app-tappable-border);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}

.hours div span {
  display: block;
  font-weight: var(--weight-regular);
  font-size: var(--text-xs);
  color: var(--muted);
}

.hours div.on {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: var(--field);
}

/* the translations tile */
.versions {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.versions div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: 14px;
  background: var(--field);
  border: 1px solid var(--line);
  font-size: var(--text-sm);
}

.versions div b {
  font-family: var(--font-read);
  font-size: var(--text-md);
}

.versions div span {
  color: var(--faint);
  font-size: var(--text-xs);
}

/* ---------- built with Claude: the dark band ---------- */

.claude {
  position: relative;
  isolation: isolate;
  color: var(--on-gold);
  background: radial-gradient(ellipse 80% 60% at 70% 0%, #4a3a26 0%, transparent 70%), linear-gradient(180deg, #2b231a 0%, #1f1912 100%);
  border-radius: 40px;
  margin-inline: var(--space-md);
  overflow: hidden;
}

.claude .grid-lines {
  background-image:
    linear-gradient(to right, rgba(255, 233, 184, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 233, 184, 0.06) 1px, transparent 1px);
}

.claude .eyebrow {
  color: #e8b96a;
}

.claude .section-head p {
  color: rgba(255, 249, 238, 0.7);
}

.claude .gold-text {
  background: linear-gradient(100deg, #f5d391 0%, #e8b96a 50%, #c8912f 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
  position: relative;
}

.flow::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 185, 106, 0.45), transparent);
}

.flow-step {
  position: relative;
  padding: var(--space-lg);
  border-radius: 24px;
  background: #2a2219;
  border: 1px solid rgba(255, 249, 238, 0.1);
}

.flow-step .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(232, 185, 106, 0.12);
  border: 1px solid rgba(232, 185, 106, 0.3);
  color: #f5d391;
  margin-bottom: var(--space-lg);
}

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

.flow-step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.flow-step p {
  font-size: var(--text-sm);
  color: rgba(255, 249, 238, 0.68);
}

.flow-step .who {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--overline-tracking);
  text-transform: uppercase;
  color: #e8b96a;
}

/* the steps Claude does carry a travelling line of light around their edge */
@property --beam {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.beam::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--beam), transparent 0%, transparent 68%, #f5d391 84%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: beam 4s linear infinite;
  pointer-events: none;
}

@keyframes beam {
  to {
    --beam: 360deg;
  }
}

.claude-uses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.use {
  padding: var(--space-lg);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.06), rgba(255, 249, 238, 0.02));
  border: 1px solid rgba(255, 249, 238, 0.1);
}

.use .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--overline-tracking);
  text-transform: uppercase;
  color: rgba(255, 249, 238, 0.62);
}

.use .tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8b96a;
}

.use .tag.live::before {
  background: #8fbf6a;
  box-shadow: 0 0 0 4px rgba(143, 191, 106, 0.18);
}

.use h3 {
  font-size: var(--text-lg);
  margin: var(--space-sm) 0 var(--space-xs);
}

.use p {
  font-size: var(--text-sm);
  color: rgba(255, 249, 238, 0.68);
}

.sub-head {
  margin: var(--space-3xl) 0 var(--space-md);
  font-size: var(--text-xl);
}

.claude-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 249, 238, 0.1);
}

.claude-stats b {
  display: block;
  font-family: var(--font-read);
  font-weight: var(--weight-semibold);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.1;
  color: #f5d391;
  font-variant-numeric: tabular-nums;
}

.claude-stats span {
  font-size: var(--text-sm);
  color: rgba(255, 249, 238, 0.64);
}

/* ---------- principles ---------- */

.creed {
  text-align: center;
}

.creed blockquote {
  margin: 0 auto;
  max-width: 980px;
  font-family: var(--font-read);
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.creed blockquote span {
  display: block;
}

.creed blockquote span:nth-child(2) {
  color: var(--gold-deep);
  font-style: italic;
  font-weight: var(--weight-regular);
}

.creed cite {
  display: block;
  margin-top: var(--space-lg);
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--muted);
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-3xl);
  text-align: left;
}

.value {
  padding: var(--space-lg);
  border-radius: 24px;
  background: rgba(252, 244, 228, 0.55);
  border: 1px solid rgba(169, 119, 31, 0.16);
}

.value svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.value h3 {
  font-size: var(--text-lg);
  margin: var(--space-sm) 0 var(--space-xs);
}

.value p {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---------- questions ---------- */

.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid var(--hair);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  font-family: var(--font-read);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--gold-deep), var(--gold-deep)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--gold-deep), var(--gold-deep)) center / 1.5px 12px no-repeat;
  transition: transform var(--motion-entrance) ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 var(--space-3xl) var(--space-lg) 0;
  color: var(--muted);
  font-size: var(--text-lg);
}

/* ---------- the closing call ---------- */

.closing {
  position: relative;
  isolation: isolate;
  text-align: center;
  border-radius: 40px;
  margin-inline: var(--space-md);
  padding: clamp(64px, 9vw, 112px) var(--space-lg) 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(252, 244, 228, 0.75), rgba(239, 217, 174, 0.75));
  border: 1px solid var(--app-surface-border);
}

.closing h2 {
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 14em;
  margin: var(--space-sm) auto var(--space-md);
}

.closing p {
  color: var(--muted);
  font-size: var(--text-lg);
  max-width: 34em;
  margin-inline: auto;
}

.closing .hero-cta {
  justify-content: center;
}

.closing-phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  height: clamp(260px, 30vw, 360px);
}

.closing-phones .phone {
  --phone-w: clamp(180px, 20vw, 250px);
  flex: none;
}

.closing-phones .phone:nth-child(2) {
  margin-top: -36px;
}

/* ---------- footer ---------- */

.foot {
  padding: var(--space-3xl) 0 var(--space-xl);
  font-size: var(--text-sm);
  color: var(--muted);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--hair);
}

.foot-grid p {
  margin-top: var(--space-sm);
  max-width: 26em;
}

.foot h4 {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-xs);
  letter-spacing: var(--overline-tracking);
  text-transform: uppercase;
  color: var(--ink);
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-xs);
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover {
  color: var(--gold-deep);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  color: var(--faint);
}

/* ---------- the policy pages ---------- */

.doc {
  position: relative;
  isolation: isolate;
  padding: var(--space-2xl) 0 var(--space-xl);
}

.doc-card {
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  background: rgba(252, 244, 228, 0.8);
  border: 1px solid var(--app-surface-border);
  box-shadow: var(--app-surface-shadow);
}

.doc h1 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.08;
  margin: var(--space-sm) 0 var(--space-xs);
}

.doc .updated {
  color: var(--faint);
  font-size: var(--text-sm);
  margin-bottom: var(--space-xl);
}

.doc h2 {
  font-size: var(--text-xl);
  margin: var(--space-xl) 0 var(--space-sm);
}

.doc h3 {
  font-size: var(--text-lg);
  margin: var(--space-lg) 0 var(--space-2xs);
}

.doc p,
.doc ul {
  margin: 0 0 var(--space-md);
}

.doc ul {
  padding-left: var(--space-lg);
}

.doc li {
  margin-bottom: var(--space-xs);
}

.doc .lead {
  font-size: var(--text-lg);
  color: var(--muted);
}

/* ---------- reveal on scroll (only once the script says it runs) ---------- */

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

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

/* ---------- narrower screens ---------- */

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage {
    height: 560px;
  }

  .claude-uses,
  .values {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .flow::before {
    display: none;
  }

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

  .t-wide,
  .t-half,
  .t-third {
    grid-column: span 6;
  }

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

  .foot-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .nav-inner .btn {
    margin-left: auto;
  }

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

  .tour-pin {
    display: none;
  }

  .tour-step {
    min-height: 0;
    opacity: 1;
    padding: var(--space-xl) 0 var(--space-xl) var(--space-lg);
    border-left-color: var(--gold);
  }

  .tour-step .phone {
    display: block;
    --phone-w: 230px;
    margin-top: var(--space-lg);
  }

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

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 2 * var(--space-md));
  }

  .stage {
    height: 470px;
  }

  .stage .p-center {
    --phone-w: 200px;
  }

  .stage .p-left,
  .stage .p-right {
    --phone-w: 150px;
  }

  .chip-a {
    left: 0;
    top: 2%;
  }

  .chip-b {
    right: 0;
  }

  .chip-c {
    display: none;
  }

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

  .claude,
  .closing {
    margin-inline: var(--space-xs);
    border-radius: 28px;
  }

  .faq summary {
    font-size: var(--text-lg);
  }

  .faq details p {
    padding-right: 0;
  }

  .closing-phones .phone:nth-child(1),
  .closing-phones .phone:nth-child(3) {
    display: none;
  }

  .closing-phones .phone:nth-child(2) {
    margin-top: 0;
  }

  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento {
    gap: var(--space-sm);
  }

  .tile {
    padding: var(--space-lg);
  }
}

/* reduced motion: every movement stops; the page is the same, only still */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  .strip {
    overflow-x: auto;
  }
}
