/* ==========================================================================
   WORKMIND AI — sober editorial landing
   Refined, specific, tool-agnostic product voice
   ========================================================================== */

:root {
  --navy: #0b1f33;
  --navy-deep: #071521;
  --ink: #142033;
  --teal: #0d5f5f;
  --teal-bright: #1a8a7e;
  --gold: #b8954a;
  --gold-soft: #e2d0a4;
  --paper: #f5f2eb;
  --paper-2: #ebe6db;
  --cream: #faf8f4;
  --smoke: #d4cfc4;
  --line: rgba(11, 31, 51, 0.1);
  --white: #ffffff;
  --muted: rgba(20, 32, 51, 0.62);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);

  --nav-h: 4.25rem;
  --gutter: clamp(1.25rem, 4vw, 3.25rem);
  --max: 1200px;

  --px: 0;
  --py: 0;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html.rm {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.cursor-hover .cursor {
  transform: translate(var(--cx, 0), var(--cy, 0)) scale(0.4);
  opacity: 0.4;
}
body.cursor-hover .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: var(--teal);
}

body.cursor-on-dark .cursor {
  background: var(--cream);
}

body.cursor-on-dark .cursor-ring {
  border-color: rgba(250, 248, 244, 0.72);
}

body.cursor-on-dark.cursor-hover .cursor-ring {
  border-color: var(--gold-soft);
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }
  .cursor,
  .cursor-ring {
    display: none !important;
  }
}

.rm body,
.reduced-motion body,
html.rm body {
  cursor: auto;
}

.rm .cursor,
.rm .cursor-ring,
html.rm .cursor,
html.rm .cursor-ring {
  display: none !important;
}

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

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

button,
input {
  font: inherit;
}

/* —— Grain (quieter) —— */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  opacity: 0.028;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— Custom cursor —— */
.cursor,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transform: translate(-100px, -100px);
  will-change: transform;
}

.cursor {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--navy);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 1px solid rgba(11, 31, 51, 0.28);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
    border-color 0.35s;
}

/* —— Nav —— */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.site-nav.is-solid {
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--navy);
}

.nav-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--navy);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--cream);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

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

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.88rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--navy);
  transition: background 0.3s, color 0.3s, border-color 0.3s,
    transform 0.3s var(--ease-out);
}

.btn--solid {
  background: var(--navy);
  color: var(--cream);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--navy);
  color: var(--cream);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--navy-deep);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 1.25rem 2.5rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 40% 35%, black 15%, transparent 70%);
  pointer-events: none;
  opacity: 0.35;
}

.hero-kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  z-index: 1;
}

.hero-kicker .rule {
  flex: 0 0 40px;
  height: 1px;
  background: var(--gold);
}

.hero-title-block {
  position: relative;
  z-index: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-size: clamp(2.35rem, 5.4vw, 4.65rem);
  color: var(--navy);
  max-width: 14ch;
}

.hero-lead {
  margin: 0;
  max-width: 38ch;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero-title-block .hero-ctas {
  margin-top: 0.35rem;
}

.kinetic-line {
  display: block;
  overflow: visible;
  padding-bottom: 0.02em;
}

.hero .char {
  opacity: 1;
  transform: none;
}

.kinetic-line .word {
  display: inline-block;
  white-space: nowrap;
}

.kinetic-line .char {
  display: inline-block;
  will-change: transform, opacity;
}

.kinetic-line--accent {
  color: var(--teal);
  font-style: italic;
  font-weight: 560;
}

.hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.85rem;
  align-self: center;
  min-width: 0;
}

/* Featured product card in hero — cover has a job: open the product */
.hero-featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  width: 100%;
  max-width: 22.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(6, 18, 31, 0.08);
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
  transform: translate(
    calc(var(--px) * 6px),
    calc(var(--py) * 4px)
  );
}

.hero-featured:hover,
.hero-featured:focus-visible {
  border-color: rgba(13, 95, 95, 0.4);
  box-shadow: 0 22px 48px rgba(6, 18, 31, 0.12);
  outline: none;
}

.hero-featured:hover .hero-featured__cover,
.hero-featured:focus-visible .hero-featured__cover {
  transform: translateY(-4px) rotate(-1deg);
}

.hero-featured__stack {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
}

.hero-featured__ghost {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 2px;
}

.hero-featured__ghost--1 {
  transform: rotate(-4deg) translate(-4px, 2px);
  background: #e8e2d4;
}

.hero-featured__ghost--2 {
  transform: rotate(5deg) translate(5px, -2px);
  background: #ddd6c6;
  opacity: 0.85;
}

.hero-featured__cover {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(11, 31, 51, 0.12);
  box-shadow: 8px 12px 24px rgba(6, 18, 31, 0.16);
  transition: transform 0.45s var(--ease-out);
}

.hero-featured__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.hero-featured__label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.hero-featured__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 560;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.hero-featured__price {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.15rem;
}

.hero-featured__cta {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 0.4rem;
}

.hero-featured-note {
  margin: 0;
  max-width: 22.5rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: right;
}

.hero-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 1.5rem;
  z-index: 1;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

button.btn {
  cursor: pointer;
}

button.btn--solid {
  background: var(--navy);
  color: var(--cream);
}

button.btn--ghost {
  background: transparent;
  color: var(--navy);
}

button.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.hero-scroll {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
}

.hero-scroll .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(13, 95, 95, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(13, 95, 95, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 95, 95, 0);
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 3rem;
  }
  .hero-title {
    max-width: none;
  }
  .hero-right {
    align-items: stretch;
    align-self: start;
  }
  .hero-featured {
    max-width: none;
  }
  .hero-featured-note {
    text-align: left;
    max-width: none;
  }
}

.motion-css-only .hero .char {
  opacity: 0;
  transform: translateY(0.8em);
}

.motion-css-only .hero .char.char-in {
  animation: charIn 0.75s var(--ease-out) forwards;
}

@keyframes charIn {
  to {
    opacity: 1;
    transform: none;
  }
}

html.rm .hero .char,
.reduced-motion .hero .char {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* —— Marquee (lighter) —— */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--navy);
  overflow: hidden;
  padding: 0.75rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
}

.marquee-track span {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0 1.25rem;
  white-space: nowrap;
  color: var(--muted);
}

.marquee-track .dot {
  color: var(--gold);
  padding: 0;
}

html.rm .marquee-track {
  animation: none;
}

/* —— Sections —— */
.section {
  position: relative;
  padding: clamp(3.75rem, 9vw, 7rem) var(--gutter);
  scroll-margin-top: var(--nav-h);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--navy);
  max-width: 16ch;
}

/* —— About / principles —— */
.manifesto {
  background: var(--navy-deep);
  color: var(--paper);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  overflow: hidden;
}

.manifesto .section-title {
  color: var(--cream);
  max-width: 14ch;
}

.manifesto .section-label {
  color: var(--gold-soft);
}

.manifesto-lead {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  margin: 0;
  color: rgba(250, 248, 244, 0.82);
  max-width: 36ch;
  font-weight: 400;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(246, 241, 232, 0.1);
  border: 1px solid rgba(246, 241, 232, 0.1);
}

.principle {
  background: var(--navy-deep);
  padding: 1.4rem 1.25rem;
  min-height: 148px;
  transition: background 0.35s;
}

.principle:hover {
  background: #0a1a2a;
}

.principle h3 {
  margin: 0 0 0.55rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-bright);
}

.principle p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(250, 248, 244, 0.78);
}

@media (max-width: 900px) {
  .manifesto {
    grid-template-columns: 1fr;
  }
  .manifesto-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Collection —— */
.collection {
  background: var(--cream);
}

.collection-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
  max-width: var(--max);
}

.collection-head p {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.08rem;
  line-height: 1.5;
  max-width: 36ch;
  color: var(--muted);
}

@media (max-width: 800px) {
  .collection-head {
    grid-template-columns: 1fr;
  }
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2.5vw, 1.75rem);
  max-width: var(--max);
  align-items: stretch;
}

.book-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.35s;
}

.book-card:hover,
.book-card:focus-within {
  border-color: rgba(13, 95, 95, 0.35);
  box-shadow: 0 18px 40px rgba(6, 18, 31, 0.07);
}

.book-card__hit {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.book-card__hit:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.book-card__price {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 960px) {
  .collection-grid {
    grid-template-columns: 1fr;
  }
}

.book-card__index {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  z-index: 2;
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
  color: rgba(11, 31, 51, 0.07);
  pointer-events: none;
}

.book-card__visual {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--navy-deep);
}

.book-card__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(26, 138, 126, 0.28),
    transparent 55%
  );
  opacity: 0.65;
  transition: opacity 0.45s;
}

.book-card--gold .book-card__glow {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(184, 149, 74, 0.32),
    transparent 55%
  );
}

.book-card--navy .book-card__glow {
  background: radial-gradient(
    circle at 40% 20%,
    rgba(11, 31, 51, 0.45),
    transparent 55%
  );
}

.book-card:hover .book-card__glow {
  opacity: 0.9;
}

.book-card__cover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 85%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(-4deg);
  box-shadow: 12px 18px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.6s var(--ease-expo);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.book-card:hover .book-card__cover {
  transform: translate(-50%, -52%) rotate(-1deg) scale(1.03);
}

.book-card__body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.book-card__badge {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.book-card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
  max-width: 18ch;
}

.book-card__sub {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.book-card__blurb {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(20, 32, 51, 0.78);
}

.book-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

/* —— Proof strip —— */
.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--line);
  padding: 0;
  border-block: 1px solid var(--line);
}

.proof-item {
  background: var(--paper-2);
  padding: 2.1rem var(--gutter);
  text-align: left;
}

.proof-item strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.proof-item span {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

@media (max-width: 800px) {
  .proof {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— Join —— */
.join {
  background: var(--navy);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.75rem;
  align-items: center;
}

.join .section-title {
  color: var(--cream);
  max-width: 14ch;
}

.join p {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 38ch;
  color: rgba(250, 248, 244, 0.78);
}

.join-form {
  display: grid;
  gap: 0.7rem;
  padding: 1.6rem;
  border: 1px solid rgba(246, 241, 232, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.join-form label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.join-form input[type="email"] {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(246, 241, 232, 0.3);
  color: var(--cream);
  padding: 0.8rem 0;
  outline: none;
  font-size: 1rem;
}

.join-form input::placeholder {
  color: rgba(246, 241, 232, 0.32);
}

.form-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--teal-bright);
}

@media (max-width: 800px) {
  .join {
    grid-template-columns: 1fr;
  }
}

/* —— Footer —— */
.site-footer {
  padding: 2.75rem var(--gutter);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  background: var(--navy-deep);
  color: rgba(246, 241, 232, 0.65);
  border-top: 1px solid rgba(246, 241, 232, 0.06);
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-footer strong {
  display: block;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.site-footer a:hover {
  color: var(--gold-soft);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.15;
  margin: 0;
}

@media (max-width: 700px) {
  .site-footer {
    grid-template-columns: 1fr;
  }
}

/* —— Reveal —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

html.rm [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

/* —— Utility —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gold {
  color: var(--gold);
}

/* —— Scroll progress —— */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 200;
  background: var(--teal);
  transform-origin: left;
  pointer-events: none;
}

/* Staggered reveal */
[data-reveal][data-delay="1"] {
  transition-delay: 0.06s;
}
[data-reveal][data-delay="2"] {
  transition-delay: 0.12s;
}
[data-reveal][data-delay="3"] {
  transition-delay: 0.18s;
}

.join .section-title {
  position: relative;
}

.join .section-title::after {
  content: "";
  display: block;
  width: min(5.5rem, 35%);
  height: 2px;
  margin-top: 0.9rem;
  background: var(--gold);
  transform-origin: left;
  animation: ruleGrow 1.2s var(--ease-out) both;
}

@keyframes ruleGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

html.rm .join .section-title::after {
  animation: none;
}

/* —— Product detail panel (Payhip-style) —— */
body.panel-open {
  overflow: hidden;
  cursor: auto;
}

body.panel-open .cursor,
body.panel-open .cursor-ring {
  display: none !important;
}

.product-panel {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.product-panel[hidden] {
  display: none;
}

.product-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 33, 0.55);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.product-panel__sheet {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(960px, calc(100% - 1.5rem));
  max-height: min(92vh, 880px);
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(6, 18, 31, 0.28);
  animation: panelIn 0.35s var(--ease-out) both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

html.rm .product-panel__sheet {
  animation: none;
}

.product-panel__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s, border-color 0.25s;
}

.product-panel__close:hover,
.product-panel__close:focus-visible {
  background: var(--paper-2);
  border-color: rgba(13, 95, 95, 0.35);
}

.product-panel__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
  min-height: 420px;
}

.product-panel__cover-wrap {
  background: linear-gradient(165deg, #f3f0e8 0%, #e8e4d8 100%);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.product-panel__cover {
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 20px 48px rgba(6, 18, 31, 0.18);
  border: 1px solid rgba(11, 31, 51, 0.08);
}

.product-panel__info {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: clamp(2.5rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.product-panel__badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.product-panel__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 16ch;
}

.product-panel__subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.4;
}

.product-panel__price {
  margin: 0.5rem 0 0;
  font-family: var(--sans);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--navy);
}

.product-panel__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.85rem 0 0.5rem;
}

.product-panel__buy {
  min-width: 10rem;
  text-align: center;
}

.product-panel__body {
  margin-top: 0.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.product-panel__body h3 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 560;
  color: var(--navy);
}

.product-panel__body h3 + p,
.product-panel__body p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(20, 32, 51, 0.82);
}

.product-panel__list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(20, 32, 51, 0.82);
}

.product-panel__list li::marker {
  color: var(--teal);
}

@media (max-width: 760px) {
  .product-panel__sheet {
    width: 100%;
    max-height: 100%;
    height: 100%;
    align-self: stretch;
    border: 0;
  }

  .product-panel__layout {
    grid-template-columns: 1fr;
  }

  .product-panel__cover-wrap {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 1.25rem;
  }

  .product-panel__cover {
    width: min(52%, 200px);
  }
}

/* —— Product SEO sections —— */
.product-seo {
  background: var(--cream);
  max-width: var(--max);
  margin: 0 auto;
}

.product-seo .section-title {
  max-width: none;
}

.product-seo p {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 52ch;
  color: rgba(20, 32, 51, 0.82);
  margin: 0 0 0.75rem;
}

.product-seo .btn {
  margin-top: 0.5rem;
}

.product-seo__list {
  margin: 0 0 1rem;
  padding: 0 0 0 1.25rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(20, 32, 51, 0.82);
  max-width: 48ch;
}

.product-seo__list li::marker {
  color: var(--teal);
}

/* —— FAQ section —— */
.faq {
  max-width: var(--max);
  margin: 0 auto;
}

.faq .section-title {
  max-width: none;
}

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

.faq summary {
  padding: 1.15rem 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

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

.faq details p {
  padding: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(20, 32, 51, 0.78);
  max-width: 56ch;
}
