/* IRIS — iris-playbook.com */

:root {
  --bg: #fafafa;
  --bg-alt: #f2f2f2;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-2: #555;
  --text-muted: #888;
  --border: #e6e6e6;
  --accent: #c0392b;
  --accent-dark: #962d22;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --maxw: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Red top spine */
.spine {
  height: 6px;
  background: var(--accent);
  width: 100%;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text);
}
.nav-brand:hover { text-decoration: none; }
.nav-brand svg { width: 22px; height: 22px; }

.btn {
  display: inline-block;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); }

/* Language switch */
.nav-right {
  display: flex; align-items: center; gap: 14px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lang-switch a {
  color: var(--text-muted);
  padding: 4px 2px;
  transition: color .15s ease;
}
.lang-switch a:hover { color: var(--text); text-decoration: none; }
.lang-switch a.active {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
}
.lang-switch .sep { color: var(--border); }
@media (max-width: 560px) {
  .nav-right { gap: 10px; }
  .lang-switch { font-size: 11px; gap: 4px; }
}

/* Sections */
section { padding: 96px 0; }
section.tight { padding: 72px 0; }
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 16px 0;
}
.section-title {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 24px 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.section-lead {
  font-size: 19px;
  color: var(--text-2);
  max-width: 720px;
  margin: 0 0 48px 0;
}

/* Hero */
.hero {
  padding: 64px 0 96px;
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero-text { max-width: 100%; }
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 0 28px 0;
}
.hero-title {
  font-family: var(--serif);
  font-size: 140px;
  font-weight: 700;
  letter-spacing: 8px;
  line-height: 0.95;
  margin: 0 0 24px 0;
  color: var(--text);
}
.hero-divider {
  width: 120px;
  height: 2px;
  background: var(--accent);
  margin: 0 0 24px 0;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-2);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 16px 0;
}
.hero-claim {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 40px 0;
  max-width: 480px;
}
.hero-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-meta {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.hero-cover {
  display: flex; justify-content: center; align-items: center;
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.hero-cover img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.18)) drop-shadow(0 8px 16px rgba(0,0,0,0.08));
}

/* Problem section (dark) */
.problem {
  background: #1a1a1a;
  color: #f0f0f0;
}
.problem .container {
  max-width: 880px;
  text-align: center;
}
.problem-quote {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.45;
  font-weight: 400;
  margin: 0;
  color: #fff;
}
.problem-quote .accent { color: var(--accent); }
.problem-rings {
  display: flex; justify-content: center; margin-bottom: 40px;
  opacity: 0.7;
}

/* Chapters */
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.chapter-card {
  background: var(--surface);
  padding: 32px 28px;
  transition: background .2s ease, transform .2s ease;
  position: relative;
}
.chapter-card:hover { background: #fff; }
.chapter-num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin: 0 0 12px 0;
}
.chapter-title {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 14px 0;
  color: var(--text);
}
.chapter-hook {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
  font-style: italic;
}

/* Author */
.author {
  background: var(--bg-alt);
}
.author-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.author-photo {
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 30%;
  display: block;
}
.author-photo::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.3;
  pointer-events: none;
}
.author-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px 0;
}
.author-role {
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 24px 0;
  font-weight: 500;
}
.author-bio {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0 0 24px 0;
}
.author-links {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 14px;
}
.author-links a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.author-links a:hover { color: var(--accent); text-decoration: none; }

/* Endorsements */
.endorsements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.endorsement-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  transition: border-color .2s ease, transform .2s ease;
}
.endorsement-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.endorsement-rings {
  display: flex; justify-content: center; margin-bottom: 20px;
}
.endorsement-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text);
}
.endorsement-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}

/* Waitlist */
.waitlist {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.waitlist .container { max-width: 720px; text-align: center; }
.waitlist .section-lead { margin-left: auto; margin-right: auto; }
.form {
  text-align: left;
  background: var(--bg-alt);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row.full { grid-template-columns: 1fr; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-submit {
  margin-top: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.form-submit .btn { padding: 16px 40px; font-size: 16px; }
.form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.form-success.visible { display: block; }
.form-success.visible + .form { display: none; }
.form-success-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text);
}
.form-success-text {
  font-size: 16px;
  color: var(--text-2);
  margin: 0 0 24px 0;
}

/* FAQ */
.faq {
  background: var(--bg-alt);
}
.faq .container { max-width: 820px; }
.faq-list { margin-top: 32px; }
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 500;
  font-size: 17px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--accent);
  font-weight: 300;
  transition: transform .2s ease;
  flex-shrink: 0;
}
details.faq-item[open] summary::after { content: '−'; }
details.faq-item .faq-answer {
  padding: 0 24px 24px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
}
details.faq-item .faq-answer p { margin: 0 0 12px 0; }
details.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* Footer */
.footer {
  background: #1a1a1a;
  color: #999;
  padding: 56px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #fff;
  margin: 0 0 12px 0;
}
.footer p { margin: 0 0 8px 0; }
.footer h4 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px 0;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer a { color: #ccc; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #777;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-divider { margin-left: auto; margin-right: auto; }
  .hero-claim { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-title { font-size: 96px; }
  .hero-cover { order: -1; }
  .hero-cover img { max-height: 480px; }
  .section-title { font-size: 32px; }
  .problem-quote { font-size: 24px; }
  .chapters-grid { grid-template-columns: repeat(2, 1fr); }
  .author-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .author-photo { margin: 0 auto; }
  .author-links { justify-content: center; }
  .endorsements-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .container { padding: 0 20px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 1.5px; }
  .hero-title { font-size: 64px; letter-spacing: 2px; }
  .hero-subtitle { font-size: 12px; letter-spacing: 0.5px; }
  .hero-claim { font-size: 20px; }
  .hero-meta { font-size: 12px; letter-spacing: 0.5px; }
  .section-eyebrow { font-size: 11px; letter-spacing: 2px; }
  .section-title { font-size: 26px; }
  .section-lead { font-size: 17px; }
  .problem-quote { font-size: 20px; }
  .chapters-grid { grid-template-columns: 1fr; }
  .chapter-card { padding: 24px 20px; }
  .chapter-title { font-size: 18px; }
  .endorsements-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .nav-inner { height: 56px; }
  .nav-brand { font-size: 18px; letter-spacing: 3px; }
  .nav-brand svg { width: 18px; height: 18px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .author-name { font-size: 26px; }
  .author-photo { width: 200px; height: 200px; }
  .author-photo .initials { font-size: 72px; }
  details.faq-item summary { font-size: 16px; padding: 18px 20px; }
  details.faq-item .faq-answer { padding: 0 20px 20px; font-size: 15px; }
}

/* Nice wrapping for headlines */
.hero-title, .section-title, .author-name, .problem-quote, .chapter-title {
  text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
