/* Tokens mirror the app's Material 3 theme (app/lib/theme/app_theme.dart,
   seed #2962FF). Keep in sync when the app palette changes. */
:root {
  /* Vger scheme: vivid brand purple on true-grey neutrals. Mirrors
     app/lib/theme/app_theme.dart - keep in sync. */
  --primary: #9E00C4;
  --primary-dim: #780096;
  --primary-container: #E6E6E6;
  --on-primary-container: #780096;
  --tertiary-container: #F3DDF8;
  --on-tertiary-container: #780096;
  --text: #333333;
  --text-secondary: #4C4C4C;
  --border: #D6D6D6;
  --surface: #FFFFFF;
  --surface-alt: #F0F0F0;
  --bg: #FAFAFA;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; color: var(--text); }
p { margin: 0 0 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 22px; height: 48px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dim); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--primary); }
.btn-tonal { background: var(--primary-container); color: var(--on-primary-container); }
.btn-tonal:hover { background: #DADADA; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 16px; min-width: 180px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 250, 250, 0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-wordmark { height: 36px; width: auto; }

/* "Can't I just ask ChatGPT?": the two columns. */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.compare-col { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; }
.compare-ours { border-color: var(--primary); box-shadow: 0 6px 24px rgba(158, 0, 196, .08); }
.compare-head { margin: 0 0 12px; font-size: 17px; }
.compare-ours .compare-head { color: var(--primary); }
.compare-list { margin: 0; padding-left: 20px; }
.compare-list li { margin-bottom: 10px; color: var(--text-secondary); line-height: 1.5; }
.compare-ours .compare-list li { color: var(--text); }
.compare-note { margin-top: 24px; text-align: center; color: var(--text-secondary); max-width: 720px; margin-left: auto; margin-right: auto; }
.compare-note strong { color: var(--text); }
.compare-cta { margin-top: 18px; text-align: center; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* Contact section at the end of the page. */
.contact { text-align: center; }
.contact .btn { display: flex; width: fit-content; margin: 0 auto; }

.contact-form { max-width: 560px; margin: 8px auto 0; text-align: left; }
.field-row { display: flex; gap: 12px; }
.field { display: block; flex: 1; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.field input, .field textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px;
  padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { margin-top: 4px; }
.form-note { min-height: 20px; margin: 10px 0 0; font-size: 14px; color: var(--text-secondary); }
.form-note.ok { color: #1b7f3b; font-weight: 600; }
.form-note.error { color: #b3261e; }
@media (max-width: 560px) { .field-row { display: block; } }

/* Hero */
.hero {
  background: linear-gradient(135deg, #EFE0F4 0%, var(--bg) 70%);
  padding: 88px 0 80px;
  text-align: center;
}
.hero-inner { max-width: 760px; }
.hero-logo { display: block; width: 340px; max-width: 80%; height: auto; margin: 0 auto 36px; }
/* The logo with "by Anelion" just after "METHOD". The logo image has empty
   space on its right (the wordmark ends at about 57% of its width), so the
   line sits in it by proportion, and keeps its place at any screen width. */
.hero-brand { position: relative; width: 340px; max-width: 80%; margin: 0 auto 36px; }
.hero-brand .hero-logo { width: 100%; max-width: none; margin: 0; }
.hero-by { position: absolute; left: 61.5%; bottom: 13%; font-size: clamp(11px, 3vw, 15px); color: var(--text-secondary); text-decoration: none; white-space: nowrap; }
.hero-by strong { color: inherit; font-weight: inherit; }
.hero h1 { font-size: 48px; font-weight: 800; letter-spacing: -1.5px; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px; margin: 0 0 16px;
  background: var(--tertiary-container); color: var(--on-tertiary-container);
  font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.tagline { font-size: 24px; font-weight: 600; color: var(--primary); margin: -6px 0 12px; letter-spacing: -0.3px; }
.hero-sub { font-size: 19px; color: var(--text-secondary); max-width: 640px; margin: 0 auto 32px; }
.hero-cta-lead { font-size: 17px; font-weight: 600; color: var(--text); margin: -14px auto 20px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--text-secondary); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); }
.section-title { text-align: center; font-size: 30px; font-weight: 700; margin-bottom: 36px; }

/* AI */
.section-sub { text-align: center; font-size: 17px; color: var(--text-secondary); max-width: 640px; margin: -20px auto 36px; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ai-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.ai-icon { font-size: 28px; margin-bottom: 12px; }
.ai-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.ai-card p { font-size: 14.5px; color: var(--text-secondary); margin: 0; line-height: 1.55; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary-container);
  color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.step-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--primary); text-transform: uppercase; }
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* Book */
.book { display: flex; align-items: center; gap: 56px; }
.book-cover {
  flex: 0 0 240px; width: 240px; height: auto;
  border-radius: 4px 10px 10px 4px;
  box-shadow: 8px 12px 24px rgba(0, 0, 0, 0.22);
}
.book-author { font-size: 14px; color: var(--text-secondary); margin: -8px 0 14px; }
.book-copy h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.book-copy p { font-size: 16px; color: var(--text-secondary); max-width: 560px; }
.book-copy .btn { margin: 8px 0 10px; }
.book-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: var(--tertiary-container); color: var(--on-tertiary-container);
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 14px;
}
.small { font-size: 13px; color: var(--text-secondary); }

/* CTA + footer */
.cta { text-align: center; }
.cta h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.cta-lead { font-size: 17px; color: var(--text-secondary); max-width: 560px; margin: 0 auto 24px; }
.footer { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; font-size: 12.5px; color: var(--text-secondary); }
.footer a, .built-by a { color: inherit; font-weight: 600; }
/* Who made it, under the hero's sign-up: a quiet line, not a second call to action. */
.built-by { margin-top: 14px; font-size: 13px; color: var(--text-secondary); }
/* Book preface page (preface.html): a long read, so a narrow column and a
   book face for the text; the site's own sans for everything around it. */
.reading { max-width: 680px; margin: 0 auto; padding: 56px 24px 72px; }
.reading-head { text-align: center; margin-bottom: 40px; }
.reading-book {
  font-size: 24px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--primary); text-decoration: none;
}
.reading-book:hover { text-decoration: underline; }
.reading-part { font-size: 22px; font-weight: 600; color: var(--text-secondary); margin: 32px 0 16px; }
.reading h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.8px; margin: 0; }
.epigraph { margin: 0 0 44px; padding: 4px 0 4px 20px; border-left: 3px solid var(--primary); }
.epigraph p { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 20px; line-height: 1.55; margin: 0 0 8px; }
.epigraph footer { font-size: 14px; color: var(--text-secondary); }
.reading-body p { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.75; margin: 0 0 1.15em; }
.break { border: 0; margin: 40px 0; text-align: center; overflow: visible; }
.break::before { content: "\2022\2003\2022\2003\2022"; color: var(--text-secondary); }
.reading-body .reading-link { text-align: center; font-family: inherit; font-weight: 700; }
.reading-link a { color: var(--primary); }
.reading-end {
  display: flex; align-items: center; gap: 28px; margin-top: 56px; padding: 28px;
  background: var(--surface-alt); border-radius: 16px;
}
.reading-end-cover { flex: 0 0 110px; width: 110px; height: auto; border-radius: 3px 6px 6px 3px; box-shadow: 4px 6px 14px rgba(0, 0, 0, 0.2); }
.reading-end h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.reading-end p { color: var(--text-secondary); }

/* Responsive */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px; margin: 0 0 16px;
  background: var(--tertiary-container); color: var(--on-tertiary-container);
  font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.tagline { font-size: 19px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
  .btn-lg { min-width: 0; }
  .section { padding: 44px 0; }
  .section-title { font-size: 24px; }
  .book { flex-direction: column; text-align: center; gap: 32px; }
  .book-copy p { margin-left: auto; margin-right: auto; }
  .book-copy h2 { font-size: 24px; }
  .book-actions { justify-content: center; }
  .reading { padding: 36px 16px 48px; }
  .reading-book { font-size: 18px; letter-spacing: 1px; }
  .reading-part { font-size: 18px; }
  .reading h1 { font-size: 28px; }
  .reading-body p { font-size: 17.5px; }
  .epigraph p { font-size: 18px; }
  .reading-end { flex-direction: column; text-align: center; padding: 24px 16px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .brand-wordmark { height: 30px; }
}
