/* ---------------------------------------------------------
   Permanently Unfinished — landing page
   Palette sampled from the cover artwork's infinity mark.
--------------------------------------------------------- */

:root {
  --purple: #9614d1;
  --purple-dark: #6d0ea3;
  --purple-darker: #4a0872;
  --purple-tint: #f7edfb;
  --purple-tint-2: #f1defa;
  --ink: #1b1720;
  --ink-soft: #4a4451;
  --gray: #736b60;
  --gray-light: #e8e1d3;
  --bg: #faf7f2;
  --bg-tint: #f2ece0;
  --white: #fffdfa;
  --shadow-color: 273 40% 25%;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-title: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1180px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* subtle paper grain, matching the cover art's slightly broken sand-white texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: 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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

/* main section headers share the top header's typeface */
h2 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

em { font-style: italic; color: inherit; }

a { color: var(--purple-dark); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* -------------------- buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(150, 20, 209, 0.55);
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--gray-light);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple-dark); }
.btn-large { padding: 15px 28px; font-size: 1rem; }
.btn-small { padding: 8px 16px; font-size: 0.85rem; }

/* -------------------- header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 26px; height: 26px; color: var(--purple); flex-shrink: 0; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.primary-nav a:not(.btn):hover { color: var(--purple-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* -------------------- hero -------------------- */
.hero {
  padding: 64px 0 96px;
  background:
    radial-gradient(60% 50% at 85% 0%, var(--purple-tint) 0%, transparent 70%),
    radial-gradient(45% 40% at 10% 15%, var(--purple-tint-2) 0%, transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-dark);
  background: var(--purple-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-title);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin-bottom: 0.3em;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--ink-soft);
  margin-bottom: 0.7em;
}
.hero-subtitle-ai {
  color: var(--purple);
  font-style: normal;
  font-weight: 600;
}
.hero-lede {
  font-size: 1.1rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 26px;
}
.hero-byline {
  font-size: 0.92rem;
  color: var(--gray);
  margin: 0;
}
.hero-byline strong { color: var(--ink); }
.hero-publisher {
  font-size: 0.88rem;
  color: var(--gray);
  margin: 6px 0 0;
}
.hero-publisher a { color: var(--purple-dark); font-weight: 600; }

.hero-cover {
  display: flex;
  justify-content: center;
}
.hero-cover img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 6px;
  box-shadow:
    0 2px 4px hsl(var(--shadow-color) / 0.15),
    0 12px 24px -6px hsl(var(--shadow-color) / 0.3),
    0 40px 60px -20px hsl(var(--shadow-color) / 0.45);
  transform: perspective(1000px) rotateY(-4deg);
  transition: transform 0.4s ease;
}
.hero-cover img:hover {
  transform: perspective(1000px) rotateY(0deg);
}

/* -------------------- sections -------------------- */
.section { padding: 88px 0; }
.section-tint { background: var(--bg-tint); }

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-dark);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.5em;
}
.policy-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 0.3em;
}
.policy-body h2 {
  font-size: 1.4rem;
  margin-top: 1.8em;
}
.lead-paragraph { font-size: 1.15rem; color: var(--ink); }
.text-highlight { color: var(--purple); font-weight: 700; }
.section-intro { font-size: 1.1rem; }

.pull-quote {
  margin: 40px 0 8px;
  padding: 28px 32px;
  border-left: 4px solid var(--purple);
  background: var(--purple-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.4em;
}
.pull-quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--gray);
}

/* -------------------- praise -------------------- */
.praise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.praise-card {
  border-radius: var(--radius);
  padding: 30px 26px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.praise-card.is-placeholder {
  border: 1.5px dashed #d8cbe3;
  background: repeating-linear-gradient(135deg, rgba(150,20,209,0.03) 0 10px, transparent 10px 20px);
  text-align: center;
  color: var(--gray);
}
.praise-card.is-placeholder .quote-mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: #d8cbe3;
  line-height: 1;
  margin-bottom: 4px;
}
.praise-card.is-placeholder p { color: var(--gray); font-size: 0.95rem; margin: 0; }

.praise-card.is-filled {
  background: var(--white);
  border: 1px solid var(--gray-light);
  box-shadow: 0 10px 30px -18px rgba(75,10,120,0.2);
}
.praise-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
}
.praise-attribution { font-size: 0.88rem; color: var(--gray); margin: 0; }

/* -------------------- author -------------------- */
.author-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}
.author-portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 40px -18px rgba(75,10,120,0.5);
}
.text-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  margin-top: 6px;
}
.text-link:hover { text-decoration: underline; }

/* -------------------- comp titles -------------------- */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.comp-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px;
  border: 1px solid var(--gray-light);
}
.comp-card h4 { font-size: 1.1rem; margin-bottom: 0.2em; }
.comp-byline {
  font-size: 0.85rem;
  color: var(--purple-dark);
  font-weight: 600;
  margin-bottom: 0.8em;
}
.comp-card p:last-child { font-size: 0.94rem; margin-bottom: 0; }

/* -------------------- notify form (MailerLite) -------------------- */
.notify-inner { text-align: center; }

.notify-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  max-width: 420px;
  margin: 24px auto 0;
}
.notify-form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.notify-form-row input[type="email"] {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-light);
  outline: none;
  flex: 1 1 200px;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}
.notify-form-row input[type="email"]:focus { border-color: var(--purple); }

.notify-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}
.notify-consent-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--purple);
}
.notify-consent-label .label-description {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.notify-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.notify-status {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--purple-dark);
  min-height: 1.2em;
}
.notify-disclaimer {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--gray);
  text-align: center;
}

/* -------------------- faq -------------------- */
.faq-list { margin-top: 24px; }
.faq-item {
  border-bottom: 1px solid var(--gray-light);
  padding: 18px 0;
}
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--purple);
  margin-left: 16px;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; margin-bottom: 0; }

/* -------------------- footer -------------------- */
.site-footer {
  background: var(--ink);
  color: #cfc7d6;
  padding: 56px 0 40px;
}
.footer-inner { text-align: center; }
.brand-footer { color: #fff; justify-content: center; margin-bottom: 16px; }
.brand-footer .brand-mark { color: #c98cf0; }
.footer-note, .footer-contact { font-size: 0.9rem; color: #b8adc4; margin-bottom: 6px; }
.footer-note a, .footer-contact a { color: #d9b8f5; }
.footer-copyright { font-size: 0.8rem; color: #8a7f96; margin-top: 20px; margin-bottom: 0; }

/* -------------------- reveal-on-scroll -------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- responsive -------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-cover { order: -1; }
  .hero-cover img { max-width: 240px; }
  .author-inner { grid-template-columns: 1fr; text-align: center; }
  .author-portrait { margin: 0 auto; }
  .comp-grid, .praise-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-light);
    box-shadow: 0 16px 24px -16px rgba(0,0,0,0.15);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a.btn { align-self: flex-start; }
  .nav-toggle { display: flex; }

  .comp-grid, .praise-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-cover img { transition: none; }
}
