:root {
  color-scheme: light;
  --paper: #fbfaff;
  --white: #fff;
  --ink: #191b24;
  --muted: #58586b;
  --rule: #e3e0ec;
  --violet: #5b45d9;
  --violet-hover: #4a35c0;
  --lavender: #f3efff;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { margin-bottom: 18px; letter-spacing: -.067em; line-height: .98; }
h2 { margin-bottom: 0; letter-spacing: -.058em; line-height: 1.03; }
h1 em, h2 em { color: var(--violet); font-weight: 400; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--violet); outline-offset: 5px; }
section[id] { scroll-margin-top: 32px; }
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--rule); background: #fdfcff; }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: clamp(15px, 3.1vw, 38px); }
.nav-actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.nav-account { display: inline-flex; align-items: center; min-height: 40px; }
.nav-links a, .nav-account, .footer-links a { color: var(--muted); font-size: .91rem; font-weight: 560; text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-account:hover, .footer-links a:hover { color: var(--violet); text-decoration: underline; text-underline-offset: 5px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .91rem;
  font-weight: 660;
  white-space: nowrap;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.button-small { min-height: 40px; padding-inline: 14px; }
.button-outline { border-color: #d9d4e8; background: var(--white); }
.button-outline:hover { border-color: #b7a8ed; background: var(--lavender); }
.button-primary { background: var(--violet); color: var(--white); }
.button-primary:hover { background: var(--violet-hover); }
.text-link { color: var(--violet); font-size: .91rem; font-weight: 660; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; margin-top: 24px; }

.home-page { --serif: var(--mte-editorial-serif); }
.home-page .site-header { background: #faf6f7; border-bottom: 1px solid #e7dcec; }
.home-page .nav { width: min(1440px, calc(100% - 96px)); }
.home-page .nav-account { min-height: 44px; }
.home-page .nav-actions .button { gap: 7px; border-radius: 99px; background: #fff9; }
.home-page .nav-actions .button:hover { background: var(--white); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #faf6f7;
  color: #251c45;
  text-align: center;
}
.book-light, .home-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.book-light {
  z-index: -2;
  object-fit: cover;
  object-position: center bottom;
}
.home-hero::after {
  z-index: -1;
  background: linear-gradient(#faf6f7 0%, #faf6f720 23%, transparent 58%, #f0e7ff66 78%, var(--paper) 100%);
  content: '';
}
.hero-content { padding-block: clamp(65px, 7.5vw, 115px) clamp(73px, 8.1vw, 120px); }
.hero-content h1 {
  max-width: 11ch;
  margin: 0 auto 14px;
  font-size: clamp(4.25rem, 8.4vw, 8rem);
  line-height: .9;
  letter-spacing: -.03em;
  text-wrap: balance;
}
@media (min-width: 700px) {
  .hero-content h1 { max-width: none; }
}
.hero-summary {
  max-width: 68ch;
  margin: 0 auto;
  color: #473b61;
  font-size: clamp(1rem, 1.55vw, 1.14rem);
  text-wrap: pretty;
}
.hero-brief {
  width: min(100%, 770px);
  margin: clamp(23px, 3vw, 38px) auto 0;
  padding: 19px;
  border: 1px solid #e9e1f1;
  border-radius: 24px;
  color: var(--ink);
  background: var(--white);
  text-align: start;
  box-shadow: 0 2px 4px #572a7112, 0 14px 36px #59317028, 0 0 0 5px #fff5;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.hero-brief:focus-within {
  border-color: #ab92eb;
  box-shadow: 0 2px 4px #572a7112, 0 14px 36px #59317032, 0 0 0 4px #eee5ff;
}
.hero-brief textarea {
  display: block;
  width: 100%;
  min-height: 84px;
  padding: 2px 4px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #251c45;
  caret-color: #6033d8;
  font: 400 clamp(1rem, 2vw, 1.18rem)/1.55 var(--sans);
  resize: vertical;
}
.hero-brief textarea::placeholder { color: #645d73; opacity: 1; }
.hero-brief textarea:focus { outline: 0; }
.hero-brief-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.brief-format {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 6px;
  background: #f3eefb;
  color: #514275;
  font-size: .81rem;
  font-weight: 620;
  line-height: 1.25;
}
.brief-format-icon {
  position: relative;
  flex: 0 0 10px;
  width: 10px;
  height: 12px;
  border: 1.5px solid #7358ab;
  border-radius: 1px 3px 3px 1px;
}
.brief-format-icon::after {
  position: absolute;
  inset: 2px 3px 2px 1px;
  border-right: 1px solid #7358ab;
  content: '';
}
.hero-brief .button-primary {
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border-color: #5d2bbd;
  border-radius: 99px;
  background: linear-gradient(#7b4ddb, #5e2cca);
  box-shadow: inset 0 1px #c5abf570, 0 2px 3px #45208e22;
  font: 660 .92rem var(--sans);
  cursor: pointer;
}
.hero-brief .button-primary:hover { background: #5624bd; }
.hero-brief .button-primary span { font-size: 1.14rem; line-height: 1; }
.hero-brief-error { margin: 3px 4px 9px; color: #8a2542; font-size: .88rem; }
.prompt-examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: clamp(23px, 3vw, 34px) auto 0;
}
.prompt-examples[hidden] { display: none; }
.prompt-examples button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 5px 13px;
  border: 1px solid #fff9;
  border-radius: 99px;
  background: #fbf7ffe6;
  color: #322450;
  font: 580 .85rem var(--sans);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.prompt-examples button:hover { background: var(--white); border-color: #967acd; }
.prompt-examples button span { color: #6a41be; font-size: .92rem; }
.hero-brief button:focus-visible, .prompt-examples button:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.hero-note { margin: 13px 0 0; color: #34284c; font-size: .86rem; font-weight: 540; }
.hero-note a { text-underline-offset: 3px; }
.hero-note a:hover { color: #482495; }
.hero-note span { margin-inline: 3px; }

.sample-section { position: relative; margin-top: clamp(-35px, -2.6vw, -12px); }
.sample-feature {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  overflow: hidden;
  margin: 0;
  border: 1px solid #e8e0f0;
  border-radius: 20px;
  background: var(--white);
  scroll-margin-top: 24px;
}
.sample-art {
  --art-width: min(38%, 166px);
  position: relative;
  min-height: clamp(259px, 28vw, 340px);
  overflow: hidden;
  background: radial-gradient(ellipse at 45% 30%, #f4ecf9, #e6ddf6 70%, #dfd5f0);
}
.sample-art img {
  position: absolute;
  inset-block-start: 50%;
  width: var(--art-width);
  height: auto;
  border-radius: 3px;
}
.sample-art-cover {
  inset-inline-start: 21%;
  transform: translateY(-50%) rotate(-8deg);
  box-shadow: 3px 4px 0 #d8cce7, 6px 7px 0 #bba9d4, 12px 18px 26px #3b2d5a4a;
}
.sample-art-page {
  inset-inline-end: 18%;
  transform: translateY(-49%) rotate(8deg);
  box-shadow: 5px 7px 14px #3b2d5a40;
}
.sample-caption { align-self: center; padding: clamp(24px, 5vw, 62px); }
.sample-caption .sample-label {
  margin: 0 0 10px;
  color: #61499b;
  font-size: .73rem;
  font-weight: 680;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sample-caption h2 { max-width: 15ch; color: #251c45; font-size: clamp(2.35rem, 4.6vw, 4rem); letter-spacing: -.022em; }
.sample-caption p { max-width: 37ch; margin: 10px 0 0; color: var(--muted); }
.sample-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 15px; margin-top: 17px; }
.sample-links a { display: inline-flex; align-items: center; min-height: 44px; }
.sample-links .button { gap: 7px; padding-inline: 14px; }

.workflow { padding-block: clamp(36px, 6.5vw, 85px); }
.section-intro h2, .pricing h2 { font-size: clamp(2.2rem, 4.1vw, 3.5rem); }
.section-intro p { margin: 10px 0 0; max-width: 55ch; color: var(--muted); }
.build-explainer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(25px, 6vw, 85px); align-items: start; margin-top: 26px; }
.steps { display: grid; gap: 12px; margin: 0; padding-inline-start: 1.45rem; }
.steps li { padding: 0 .35rem 12px; border-bottom: 1px solid var(--rule); }
.steps li::marker { color: var(--violet); font-weight: 700; }
.steps h3 { margin: 0 0 3px; font-size: 1.02rem; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }
.sample-outline { padding: clamp(17px, 3.8vw, 37px); background: var(--white); border: 1px solid var(--rule); border-left: 3px solid #b3a3d7; border-radius: 2px 12px 12px 2px; }
.sample-outline p { margin: 0 0 4px; color: var(--muted); font-size: .85rem; }
.sample-outline h3 { margin: 0; font: 400 clamp(1.65rem, 3.3vw, 2.45rem)/1.05 var(--serif); letter-spacing: -.04em; }
.sample-outline ol { margin: 13px 0 16px; padding-inline-start: 1.25rem; color: #3c344d; }
.sample-outline li { padding-block: 5px; }

.pricing {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 18px 32px;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--white);
}
.pricing-intro p { margin: 8px 0 11px; color: var(--muted); }
.pricing-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.pricing-packs div { padding-inline-start: 12px; border-inline-start: 1px solid var(--rule); }
.pricing-packs dt { color: var(--muted); font-size: .83rem; }
.pricing-packs dd { margin: 2px 0 0; font: 400 clamp(1.12rem, 2.4vw, 1.65rem)/1.15 var(--serif); white-space: nowrap; }

.home-links { padding-top: 52px; }
.home-links h2 { font-size: clamp(1.8rem, 3.55vw, 2.85rem); }
.tool-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 16px; }
.tool-card {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--white);
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease;
}
.tool-card:hover { border-color: #beb0e7; background: #faf7ff; }
.tool-card strong, .tool-card small { display: block; }
.tool-card strong { font-size: .96rem; }
.tool-card small { color: var(--muted); font-size: .88rem; }
.tool-icon { position: relative; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 8px; background: var(--lavender); }
.tool-icon-page::before, .tool-icon-book::before {
  content: '';
  position: absolute;
  inset: 11px 13px;
  border: 1px solid #7056b9;
  border-radius: 2px;
  box-shadow: inset 0 -3px #d8ccf4;
}
.tool-icon-page::after { content: ''; position: absolute; width: 7px; height: 1px; top: 17px; left: 17px; background: #7056b9; box-shadow: 0 3px #7056b9; }
.tool-icon-book::before { inset-inline: 12px; box-shadow: inset 3px 0 #d8ccf4; }
.tool-icon-color::before, .tool-icon-color::after { position: absolute; content: ''; inset: 11px; border: 1px solid #7056b9; border-radius: 50% 1px 50% 1px; }
.tool-icon-color::after { transform: rotate(90deg); }
.tool-icon-royalty::before { position: absolute; content: ''; inset: 10px; border-left: 1px solid #7056b9; border-bottom: 1px solid #7056b9; }
.tool-icon-royalty::after { position: absolute; content: ''; bottom: 13px; right: 10px; width: 16px; height: 14px; background: #7056b9; clip-path: polygon(0 64%, 23% 64%, 23% 100%, 38% 100%, 38% 40%, 61% 40%, 61% 100%, 77% 100%, 77% 0, 100% 0, 100% 100%, 0 100%); }
.tools-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.publishing { padding-bottom: 68px; }
.home-faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 16px clamp(25px, 6vw, 85px); padding-block: clamp(32px, 6vw, 66px); border-top: 1px solid var(--rule); }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.faq-list summary { cursor: pointer; padding: 4px 2px; font-weight: 660; }
.faq-list summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.faq-list p { max-width: 60ch; margin: 9px 0 2px 17px; color: var(--muted); }
.final-invite { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: clamp(35px, 6vw, 65px); padding: clamp(20px, 4vw, 40px); border: 1px solid #e5dcf8; border-radius: 14px; background: #f1ebfc; }
.final-invite h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.final-invite p { margin: 8px 0 0; color: var(--muted); }
.site-footer { border-top: 1px solid var(--rule); }
.footer-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.footer-inner > span { color: var(--muted); font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.policy { max-width: 42rem; padding-block: clamp(45px, 8vw, 100px); }
.policy h1 { font-size: clamp(2.65rem, 6vw, 4rem); }
.policy h2 { margin: 2rem 0 .65rem; font-size: 1.5rem; }
.policy p { color: var(--muted); }
.policy a { color: var(--violet); text-underline-offset: .2em; }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

@media (max-width: 760px) {
  .shell { width: min(612px, calc(100% - 36px)); }
  .nav { min-height: 64px; gap: 10px; }
  .home-page .nav { width: min(612px, calc(100% - 36px)); }
  .hero-content { padding-block: clamp(48px, 8vw, 68px) 65px; }
  .hero-content h1 { font-size: clamp(3.75rem, 12vw, 5.85rem); }
  .sample-feature { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); }
  .sample-art { --art-width: min(44%, 104px); min-height: 212px; }
  .sample-art-cover { inset-inline-start: 14%; }
  .sample-art-page { inset-inline-end: 12%; }
  .sample-caption { padding: 21px; }
  .sample-links { margin-top: 10px; }
  .build-explainer, .home-faq { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .home-links { padding-top: 38px; }
  .publishing { padding-bottom: 47px; }
}

@media (max-width: 500px) {
  .hero-content h1 { margin-bottom: 12px; }
  .hero-summary { max-width: 32ch; }
  .hero-brief { padding: 13px; border-radius: 18px; }
  .hero-brief textarea { min-height: 78px; }
  .hero-brief .button-primary { gap: 6px; padding-inline: 12px; font-size: .83rem; }
  .brief-format { gap: 5px; padding: 6px 7px; font-size: .72rem; }
  .prompt-examples { gap: 5px; }
  .prompt-examples button { padding-inline: 9px; font-size: .78rem; }
  .sample-feature { grid-template-columns: 1fr; }
  .sample-art { --art-width: min(33%, 114px); min-height: 210px; }
  .sample-art-cover { inset-inline-start: 22%; }
  .sample-art-page { inset-inline-end: 20%; }
  .sample-caption { border-top: 1px solid var(--rule); }
  .tool-links { grid-template-columns: 1fr; gap: 8px; }
  .tools-title { align-items: start; flex-direction: column; gap: 6px; }
  .footer-inner { padding-block: 14px; flex-wrap: wrap; }
}

@media (max-width: 400px) {
  .nav-actions .button { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
