/* ============================================================
   AI ALCHEMISTS — Newsletter landing
   Brand: black + amber-gold, Redaction italic headers,
   Golos Text body. Science/lab aesthetic — no wizards.
   ============================================================ */

/* ---------- fonts (self-hosted Redaction 35) ---------- */
@font-face {
  font-family: "Redaction 35";
  src: url("assets/fonts/Redaction_35-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Redaction 35";
  src: url("assets/fonts/Redaction_35-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette */
  --bg:          #0B0A09;   /* warm near-black */
  --bg-2:        #131110;   /* raised surfaces */
  --bg-3:        #1B1815;
  --gold:        #E0A126;   /* primary amber-gold */
  --gold-deep:   #B97A0C;
  --gold-bright: #F6C04A;
  --cream:       #F4EFE6;   /* primary text */
  --muted:       #9A938A;   /* secondary text */
  --line:        rgba(224, 161, 38, 0.18);
  --line-soft:   rgba(244, 239, 230, 0.08);

  /* type */
  --font-display: "Redaction 35", Georgia, "Times New Roman", serif;
  --font-serif:   "Redaction 35", Georgia, serif;
  --font-body:    "Golos Text", system-ui, -apple-system, sans-serif;

  /* layout */
  --maxw: 1080px;
  --pad:  clamp(20px, 5vw, 48px);
}

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-bright);
}

/* ---------- shared ---------- */
.section__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #1a1206;
  padding: 14px 22px;
  font-size: 1rem;
  box-shadow: 0 6px 24px -8px rgba(224, 161, 38, 0.5);
}
.btn--primary:hover { box-shadow: 0 8px 30px -6px rgba(224, 161, 38, 0.65); }

.btn--small {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 8px 16px;
  font-size: 0.85rem;
}
.btn--small:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
  background: rgba(11, 10, 9, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream);
}
.nav__logo { width: 30px; height: 30px; border-radius: 6px; }
.nav__wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 1.45rem;
  line-height: 1;
  white-space: nowrap;
}
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav__links a:hover { color: var(--cream); }
.nav__links a.btn--small:hover { color: var(--gold-bright); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 10vw, 120px) var(--pad) clamp(48px, 8vw, 90px);
  background:
    radial-gradient(120% 90% at 80% 110%, rgba(185, 122, 12, 0.35), transparent 60%),
    var(--bg);
}
/* blueprint grid — the "lab" texture */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(100% 80% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(100% 80% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
/* parent .hero__inner is text-align:center, so this row needs no flex */
.hero__title-row {
  margin: 0 0 22px;
}
/* kicker + headline centered as if the wizard weren't there;
   inline-block shrink-wraps to the text and centers via the parent's
   text-align; the wizard is absolutely overlaid to the left so it
   shifts nothing. */
.hero__title-text {
  position: relative;
  display: inline-block;
  text-align: center;
}
.hero__title-text .kicker {
  margin-bottom: 12px;
}
/* wizard perched on the top-left edge of the email box (Claude-style) */
.hero__wizard {
  position: absolute;
  left: clamp(6px, 2vw, 18px);
  bottom: 100%;
  margin-bottom: -8px;                 /* feet rest just over the top edge */
  width: clamp(60px, 8vw, 86px);
  height: auto;
  image-rendering: pixelated;          /* keep pixel art crisp */
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
  pointer-events: none;
  z-index: 2;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0;
}
.hero__headline em { display: inline; }
.hero__sub {
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto clamp(58px, 13vw, 64px);   /* room for the wizard perched on the box */
}

/* signup */
.signup {
  position: relative;
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.signup--center { margin: 0 auto; }
.signup__input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--cream);
  font-family: var(--font-body);
  /* 16px min keeps iOS Safari from auto-zooming when the field is focused */
  font-size: max(16px, 1rem);
  outline: none;
  transition: border-color 0.2s ease;
}
.signup__input::placeholder { color: #6f6961; }
.signup__input:focus { border-color: var(--gold); }
.signup__note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}
.signup__note strong { color: var(--cream); }

/* specimen tile */
.specimen {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: clamp(48px, 8vw, 80px);
}
.specimen__tile {
  position: relative;
  display: grid;
  width: 200px;
  height: 200px;
  padding: 16px;
  background: linear-gradient(160deg, #000 0%, #14100a 55%, #4a3206 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 60px -20px rgba(224, 161, 38, 0.4);
  grid-template-rows: auto 1fr auto;
}
.specimen__no {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--gold);
}
.specimen__symbol {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 5rem;
  color: var(--cream);
  align-self: center;
  justify-self: center;
  line-height: 1;
}
.specimen__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--cream);
}
.specimen__mass {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

/* ---------- tools ---------- */
.tools {
  padding: clamp(36px, 6vw, 56px) var(--pad);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.tools__label {
  font-size: clamp(0.62rem, 1.4vw, 0.7rem);
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-bottom: clamp(16px, 3vw, 24px);
}
/* conveyor-belt marquee — slides slowly, seamless loop via duplicated group.
   Wide spacing makes one set ≈ screen width and the strong edge fade hides
   the loop seam, so it reads as a single stream rather than visible dupes. */
.tools__marquee {
  width: min(900px, 100%);
  margin-inline: auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.tools__track {
  display: flex;
  width: max-content;
  animation: tools-scroll 45s linear infinite;
}
.tools__marquee:hover .tools__track { animation-play-state: paused; }
.tools__group {
  display: flex;
  align-items: center;
  gap: clamp(36px, 7vw, 80px);
  padding-inline-end: clamp(36px, 7vw, 80px);
}
.tools__group img {
  height: clamp(40px, 8vw, 62px);
  width: auto;
  opacity: 0.85;
  filter: grayscale(0.12);
  flex-shrink: 0;
}
@keyframes tools-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .tools__track { animation: none; }
}

/* ---------- comparison ---------- */
.compare {
  padding: clamp(64px, 10vw, 110px) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.compare__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.compare__col {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--bg-2);
}
.compare__col h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.compare__col ul { list-style: none; display: grid; gap: 12px; }
.compare__col li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}
.compare__col li::before {
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 1rem;
}
.compare__col--bad li::before { content: "✕"; color: #6b5a3a; }
.compare__col--good { border-color: var(--line); }
.compare__col--good h3 { color: var(--gold-bright); }
.compare__col--good li { color: var(--cream); }
.compare__col--good li::before { content: "✦"; color: var(--gold); }

/* ---------- what's inside ---------- */
.inside {
  padding: clamp(48px, 8vw, 90px) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.inside__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 34px);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); }
.card__no {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 8px 0 10px;
}
.card p { color: var(--muted); }

/* ---------- founder memo ---------- */
.memo {
  padding: clamp(48px, 8vw, 90px) var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.memo__card {
  width: 100%;
  max-width: 640px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.memo__head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.memo__head strong { color: var(--gold); font-weight: 600; }
.memo__body { padding: 28px 24px; }
.memo__body p { margin-bottom: 16px; color: var(--cream); }
.memo__sign {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-bright);
  font-size: 1.3rem;
}

/* ---------- faq ---------- */
.faq {
  padding: clamp(48px, 8vw, 90px) var(--pad);
  max-width: 720px;
  margin: 0 auto;
}
.faq__list { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--bg-2);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 22px 20px;
  color: var(--muted);
}

/* ---------- final cta ---------- */
.cta {
  padding: clamp(64px, 10vw, 120px) var(--pad);
  text-align: center;
  background:
    radial-gradient(100% 100% at 50% 0%, rgba(185, 122, 12, 0.22), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line-soft);
}
.cta__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: 12px;
}
.cta__sub { color: var(--muted); margin-bottom: 30px; }

/* ---------- footer ---------- */
.footer {
  padding: clamp(36px, 5vw, 56px) var(--pad) 28px;
  border-top: 1px solid var(--line-soft);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: var(--maxw);
  margin: 0 auto 22px;
}
.footer__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.footer__links a:hover { color: var(--cream); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8rem;
  color: var(--muted);
}
.footer__credit { color: var(--gold); letter-spacing: 0.04em; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .compare__cols { grid-template-columns: 1fr; }
  .inside__grid { grid-template-columns: 1fr; }
  .signup { flex-direction: column; }
  .nav__links { gap: 14px; }
}

/* phone: minimal nav — keep wordmark + Subscribe, drop the text links */
@media (max-width: 600px) {
  .nav__wordmark { font-size: 1.25rem; }
  .nav__links a:not(.btn--small) { display: none; }
  /* the band is narrow on phones — ease the fade so icons aren't half-hidden */
  .tools__marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  }
}
