/* Launch Almanac — editorial print/almanac aesthetic
   Paper, ink, vermillion stamp. Fraunces + IBM Plex Mono. */

:root {
  --paper: #f5efe2;
  --paper-deep: #ede4cf;
  --ink: #1c1a15;
  --ink-soft: #4a4538;
  --rule: #c9bd9f;
  --vermillion: #c8401a;
  --vermillion-deep: #a93513;
  --stamp-green: #2f6b3a;
  --gold: #9a7b2d;
  --max: 1060px;
}

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

::selection { background: var(--vermillion); color: var(--paper); }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* subtle paper grain */
  background-image:
    radial-gradient(at 20% 10%, rgba(154, 123, 45, 0.05), transparent 50%),
    radial-gradient(at 90% 80%, rgba(200, 64, 26, 0.04), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

.mono {
  font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

a { color: var(--vermillion-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--vermillion); }

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 3px double var(--ink);
  padding: 14px 0;
}
.masthead .wrap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.brand {
  font-weight: 900; font-size: 1.15rem; letter-spacing: 0.01em;
  text-decoration: none; color: var(--ink);
}
.brand .amp { color: var(--vermillion); }
.masthead-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 640px) { .masthead-meta { display: none; } }

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

.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }

.hero-edition {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--vermillion-deep);
  display: flex; align-items: center; gap: 14px;
}
.hero-edition::before, .hero-edition::after {
  content: ""; height: 1px; width: 42px; background: var(--vermillion-deep);
}

h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 22px 0 6px;
  max-width: 16ch;
  font-variation-settings: "opsz" 144;
}
h1 em {
  font-style: italic; font-weight: 600; color: var(--vermillion-deep);
}

.hero-sub {
  font-size: 1.18rem; color: var(--ink-soft); max-width: 56ch; margin: 18px 0 32px;
}
.hero-sub strong { color: var(--ink); }

.hero-cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.stamp {
  position: absolute; right: 24px; top: 64px;
  transform: rotate(7deg);
  border: 3px solid var(--stamp-green);
  border-radius: 6px;
  color: var(--stamp-green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 16px;
  text-align: center;
  opacity: 0.85;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23r)'/%3E%3C/svg%3E");
}
.stamp small { display: block; font-size: 0.62rem; letter-spacing: 0.1em; }
@media (max-width: 860px) { .stamp { display: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--vermillion);
  color: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none;
  padding: 15px 30px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover {
  background: var(--vermillion-deep); color: var(--paper);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: none; border: 2px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: none; box-shadow: none; }

.cta-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem; color: var(--ink-soft);
}

/* ---------- proof bar ---------- */

.proof-bar {
  border-top: 1px solid var(--rule);
  border-bottom: 3px double var(--ink);
  background: var(--paper-deep);
}
.proof-bar .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.proof-cell {
  padding: 26px 12px;
  border-left: 1px solid var(--rule);
}
.proof-cell:first-child { border-left: none; }
.proof-num {
  font-size: 2.3rem; font-weight: 900; line-height: 1;
  font-variation-settings: "opsz" 144;
}
.proof-num sup { font-size: 1rem; color: var(--vermillion-deep); }
.proof-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 8px;
}
@media (max-width: 760px) {
  .proof-bar .wrap { grid-template-columns: repeat(2, 1fr); }
  .proof-cell:nth-child(3) { border-left: none; }
  .proof-cell:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ---------- sections ---------- */

section { padding: 76px 0; }

.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--vermillion-deep); margin-bottom: 14px;
}
.kicker::before { content: "№ "; color: var(--gold); }

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 900; line-height: 1.12; letter-spacing: -0.01em;
  max-width: 24ch; margin-bottom: 18px;
  font-variation-settings: "opsz" 144;
}
h2 em { font-style: italic; font-weight: 600; color: var(--vermillion-deep); }

.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.lede strong { color: var(--ink); }

.rule-top { border-top: 1px solid var(--rule); }

/* ---------- problem section ---------- */

.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 44px; border: 2px solid var(--ink);
  background: var(--paper);
}
.problem-card { padding: 30px 26px; border-left: 1px solid var(--rule); }
.problem-card:first-child { border-left: none; }
.problem-card h3 {
  font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3;
}
.problem-card p { font-size: 0.95rem; color: var(--ink-soft); }
.problem-num {
  font-family: "IBM Plex Mono", monospace;
  color: var(--vermillion-deep); font-size: 0.8rem; letter-spacing: 0.15em;
  display: block; margin-bottom: 14px;
}
@media (max-width: 760px) {
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card { border-left: none; border-top: 1px solid var(--rule); }
  .problem-card:first-child { border-top: none; }
}

/* ---------- contents (TOC style with dotted leaders) ---------- */

.toc { margin-top: 44px; border-top: 3px double var(--ink); }
.toc-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px; align-items: baseline;
  padding: 26px 4px;
  border-bottom: 1px solid var(--rule);
}
.toc-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.5rem; color: var(--gold); font-weight: 500;
}
.toc-body h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.toc-body p { color: var(--ink-soft); font-size: 0.98rem; max-width: 58ch; }
.toc-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--paper); background: var(--ink);
  padding: 4px 10px; border-radius: 2px; white-space: nowrap;
}
.toc-tag.highlight { background: var(--vermillion); }
@media (max-width: 640px) {
  .toc-row { grid-template-columns: 1fr; gap: 8px; }
  .toc-num { font-size: 1.1rem; }
}

/* ---------- data demo table ---------- */

.demo-frame {
  margin-top: 44px;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--paper-deep), 8px 8px 0 1px var(--rule);
  background: #fbf7ec;
  overflow-x: auto;
}
.demo-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
  min-width: 640px;
}
.demo-head .live-dot {
  color: var(--stamp-green); font-weight: 600;
}
table { border-collapse: collapse; width: 100%; min-width: 640px; }
th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: left; color: var(--ink-soft);
  padding: 12px 18px; border-bottom: 2px solid var(--ink);
}
td {
  padding: 13px 18px; border-bottom: 1px solid var(--rule);
  font-size: 0.92rem; vertical-align: top;
}
tr:last-child td { border-bottom: none; }
td .t-name { font-weight: 700; }
td .t-sub { display: block; font-size: 0.8rem; color: var(--ink-soft); }
.v-ok {
  font-family: "IBM Plex Mono", monospace; font-size: 0.74rem;
  color: var(--stamp-green); font-weight: 600; white-space: nowrap;
}
.v-dead {
  font-family: "IBM Plex Mono", monospace; font-size: 0.74rem;
  color: var(--vermillion-deep); font-weight: 600; white-space: nowrap;
}
td.dead-row, td.dead-row .t-sub { color: #9b9484; }
td.dead-row .t-name { text-decoration: line-through; text-decoration-color: var(--vermillion-deep); }
.demo-caption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem; color: var(--ink-soft);
  margin-top: 16px;
}

/* ---------- pricing ---------- */

.pricing { background: var(--ink); color: var(--paper); }
.pricing .kicker { color: var(--paper); }
.pricing .kicker::before { color: var(--gold); }
.pricing h2 { color: var(--paper); }
.pricing h2 em { color: #e8693f; }

.price-card {
  margin-top: 44px;
  border: 2px solid var(--paper);
  display: grid; grid-template-columns: 1.2fr 1fr;
  background: transparent;
}
.price-left { padding: 40px; border-right: 1px solid rgba(245, 239, 226, 0.25); }
.price-right { padding: 40px; display: flex; flex-direction: column; justify-content: center; }

.price-includes { list-style: none; }
.price-includes li {
  padding: 10px 0 10px 30px;
  border-bottom: 1px dotted rgba(245, 239, 226, 0.25);
  position: relative; font-size: 0.98rem;
}
.price-includes li:last-child { border-bottom: none; }
.price-includes li::before {
  content: "✓"; position: absolute; left: 2px;
  color: #e8693f; font-weight: 700;
  font-family: "IBM Plex Mono", monospace;
}
.price-includes li strong { color: var(--paper); }
.price-includes li { color: rgba(245, 239, 226, 0.78); }

.price-amount {
  font-size: 4.4rem; font-weight: 900; line-height: 1;
  font-variation-settings: "opsz" 144;
}
.price-amount sup { font-size: 1.8rem; font-weight: 600; }
.price-compare {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem; color: rgba(245, 239, 226, 0.6);
  margin: 14px 0 28px; line-height: 1.7;
}
.price-compare s { color: rgba(245, 239, 226, 0.45); }
.pricing .btn {
  border-color: var(--paper); box-shadow: 4px 4px 0 var(--paper);
  text-align: center;
}
.pricing .btn:hover { box-shadow: 6px 6px 0 var(--paper); }
.pricing .cta-note { color: rgba(245, 239, 226, 0.6); margin-top: 14px; }
@media (max-width: 760px) {
  .price-card { grid-template-columns: 1fr; }
  .price-left { border-right: none; border-bottom: 1px solid rgba(245, 239, 226, 0.25); }
}

/* ---------- FAQ ---------- */

.faq-list { margin-top: 36px; border-top: 3px double var(--ink); }
details {
  border-bottom: 1px solid var(--rule);
}
summary {
  cursor: pointer;
  font-weight: 700; font-size: 1.08rem;
  padding: 22px 36px 22px 4px;
  list-style: none;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.3rem; color: var(--vermillion-deep);
  transition: transform 0.15s ease;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p {
  padding: 0 4px 24px; color: var(--ink-soft); max-width: 64ch;
}
details p + p { margin-top: -10px; }

/* ---------- final CTA ---------- */

.final-cta { text-align: center; padding: 90px 0; }
.final-cta h2 { margin: 0 auto 16px; }
.final-cta .lede { margin: 0 auto 36px; }

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

footer {
  border-top: 3px double var(--ink);
  padding: 28px 0 40px;
}
footer .wrap {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem; color: var(--ink-soft);
}
footer a { color: var(--ink-soft); }

/* ---------- free directories page ---------- */

.article-hero { padding: 64px 0 40px; }
.article-hero h1 { max-width: 22ch; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.article-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 18px;
  display: flex; gap: 18px; flex-wrap: wrap;
}
.article-meta .verified { color: var(--stamp-green); font-weight: 600; }
.prose { max-width: 70ch; }
.prose p { margin-bottom: 18px; }
.prose h2 { margin-top: 48px; }

.upsell-band {
  border: 2px solid var(--ink);
  background: var(--paper-deep);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 34px;
  margin: 56px 0;
}
.upsell-band h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; }
.upsell-band p { color: var(--ink-soft); margin-bottom: 22px; max-width: 58ch; }

/* ---------- reveal animation ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.in { opacity: 1; transform: none; }
}
