:root {
  --paper: #f7f3ea;
  --paper-deep: #e8dac3;
  --ink: #1f2d3d;
  --slate: #6e7f8d;
  --moss: #9fbf9f;
  --champagne: #f6d96b;
  --blush: #e76a6a;
  --sky: #a7d3e8;
  --lavender: #c7bee6;
  --white: #fffaf1;
  --shadow: rgba(31, 45, 61, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Avenir, "Avenir Next", Inter, system-ui, sans-serif;
  background:
    linear-gradient(rgba(247, 243, 234, 0.84), rgba(247, 243, 234, 0.92)),
    url("/assets/lullashelf-dream-background.png") center top / cover fixed;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 250, 241, 0.96);
  border-bottom: 1px solid rgba(31, 45, 61, 0.12);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 34px);
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 800;
}

nav a {
  text-decoration: none;
}

.nav-menu {
  position: relative;
}

.nav-menu-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 0;
  color: var(--slate);
  font: inherit;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.nav-menu-button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: -14px;
  min-width: 190px;
  display: none;
  padding: 8px;
  background: var(--white);
  border: 1px solid rgba(31, 45, 61, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(31, 45, 61, 0.14);
}

.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  color: var(--ink);
  border-radius: 6px;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: rgba(167, 211, 232, 0.28);
  outline: 0;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown,
.nav-menu.is-open .nav-dropdown {
  display: block;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(34px, 6vw, 86px) clamp(18px, 6vw, 86px) 34px;
}

.creator-hero,
.legal-hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(34px, 6vw, 86px) clamp(18px, 6vw, 86px);
}

.creator-hero {
  background: linear-gradient(135deg, rgba(255, 250, 241, 0.94), rgba(246, 217, 107, 0.2));
}

.legal-hero {
  background: linear-gradient(135deg, rgba(247, 243, 234, 0.95), rgba(199, 190, 230, 0.32));
}

.hero-copy {
  max-width: 650px;
}

.hero-wordmark {
  width: min(100%, 560px);
  height: auto;
  display: block;
  margin: 0 0 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 20px;
  font-size: clamp(3.1rem, 8vw, 7.8rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4.8vw, 4.8rem);
}

h3 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

p {
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-copy p {
  max-width: 610px;
  color: #536371;
  font-size: 1.22rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  text-decoration: none;
  font-weight: 900;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 250, 241, 0.82);
  color: var(--ink);
  border: 1px solid rgba(31, 45, 61, 0.12);
}

.hero-art {
  min-width: 0;
}

.banner {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(31, 45, 61, 0.18);
}

.app-hero-shot {
  width: min(100%, 420px);
  max-height: 78vh;
  margin: 0 auto;
  object-fit: cover;
  object-position: top center;
}

.free-library-collage {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.preview-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  margin-top: clamp(12px, 2vw, 22px);
}

.preview-stack img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(31, 45, 61, 0.16);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(18px, 6vw, 86px) clamp(28px, 6vw, 72px);
}

.intro-strip a {
  margin: 0;
  padding: 18px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 250, 241, 0.78);
}

.section {
  padding: clamp(52px, 8vw, 108px) clamp(18px, 6vw, 86px);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
  background: rgba(255, 250, 241, 0.74);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--blush);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-grid,
.legal-grid,
.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

article {
  min-height: 180px;
  padding: 24px;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(31, 45, 61, 0.09);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(31, 45, 61, 0.08);
}

article p {
  margin-bottom: 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(24px, 4vw, 46px);
}

.screenshots-section {
  background: rgba(247, 243, 234, 0.84);
}

.creator-section {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(167, 211, 232, 0.34)),
    url("/assets/lullashelf-dream-background.png") center / cover;
}

.creator-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
}

.creator-panel,
.creator-preview {
  min-width: 0;
}

.creator-panel {
  padding: clamp(20px, 3vw, 32px);
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid rgba(31, 45, 61, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(31, 45, 61, 0.1);
}

.creator-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}

.creator-progress span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(31, 45, 61, 0.08);
  border-radius: 8px;
}

.creator-progress .active {
  color: var(--ink);
  background: var(--champagne);
}

.creator-panel label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
}

.account-box {
  margin-bottom: 18px;
  padding: 18px;
  background: rgba(167, 211, 232, 0.24);
  border: 1px solid rgba(31, 45, 61, 0.1);
  border-radius: 8px;
}

.account-box h3 {
  margin-bottom: 6px;
}

.account-box p {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.account-fields {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-actions button {
  min-height: 42px;
  border: 1px solid rgba(31, 45, 61, 0.14);
  color: var(--ink);
  font: inherit;
  font-weight: 950;
  background: rgba(255, 250, 241, 0.9);
  border-radius: 8px;
  cursor: pointer;
}

.creator-panel textarea,
.creator-panel select,
.creator-panel input {
  width: 100%;
  color: var(--ink);
  font: inherit;
  background: #fffdf8;
  border: 1px solid rgba(31, 45, 61, 0.14);
  border-radius: 8px;
}

.creator-panel textarea {
  resize: vertical;
  padding: 14px;
  line-height: 1.5;
}

.creator-panel select {
  min-height: 46px;
  padding: 0 12px;
}

.creator-panel input {
  min-height: 44px;
  padding: 0 12px;
}

.creator-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.image-upload-box {
  margin-bottom: 16px;
}

.image-upload-box span {
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
}

.price-box {
  margin-bottom: 16px;
  padding: 18px;
  background: rgba(246, 217, 107, 0.22);
  border: 1px solid rgba(31, 45, 61, 0.1);
  border-radius: 8px;
}

.price-box h3 {
  margin-bottom: 6px;
}

.price-box p {
  margin-bottom: 10px;
  color: var(--ink);
}

.price-box ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--slate);
  font-weight: 800;
}

.creator-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  color: var(--white);
  font: inherit;
  font-weight: 950;
  background: var(--ink);
  border-radius: 8px;
  cursor: pointer;
}

.secondary-action {
  margin-top: 10px;
  color: var(--ink);
  background: var(--champagne);
}

.creator-download {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  color: var(--white);
  font-weight: 950;
  text-decoration: none;
  background: var(--blush);
  border-radius: 8px;
}

.creator-status {
  margin: 14px 0 0;
  padding: 12px;
  color: var(--slate);
  font-size: 0.95rem;
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid rgba(31, 45, 61, 0.08);
  border-radius: 8px;
}

.creator-status[data-tone="success"] {
  color: #2d6040;
  background: rgba(159, 191, 159, 0.22);
}

.creator-status[data-tone="error"] {
  color: #8b2f2f;
  background: rgba(231, 106, 106, 0.16);
}

.preview-book {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(31, 45, 61, 0.18);
}

.preview-book img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.84);
}

.locked-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--white);
  text-align: center;
  background: rgba(31, 45, 61, 0.58);
}

.locked-overlay strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.locked-overlay span {
  font-weight: 850;
}

.creator-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.creator-card-grid article {
  min-height: 0;
}

.project-history {
  margin-top: 16px;
  padding: 20px;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(31, 45, 61, 0.09);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(31, 45, 61, 0.08);
}

.project-history ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--slate);
  font-weight: 850;
}

.screen-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.phone-shot {
  margin: 0;
}

.phone-frame {
  width: min(100%, 320px);
  aspect-ratio: 9 / 19.5;
  margin: 0 auto 18px;
  padding: 13px;
  background: #1d2734;
  border-radius: 38px;
  box-shadow: 0 30px 68px rgba(31, 45, 61, 0.22);
}

.landscape-frame {
  width: min(100%, 620px);
  aspect-ratio: 19.5 / 9;
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(31, 45, 61, 0.08);
  background:
    linear-gradient(rgba(255, 250, 241, 0.72), rgba(255, 250, 241, 0.94)),
    url("/assets/lullashelf-dream-background.png") center / cover;
}

.app-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 28px;
}

.app-library-screen,
.app-create-screen,
.reader-screen {
  position: relative;
  padding: 18px;
}

.mock-status {
  display: flex;
  justify-content: space-between;
  margin: 0 18px 18px;
  color: #070a0d;
  font-size: 0.86rem;
  font-weight: 950;
}

.mock-wordmark {
  display: block;
  width: 92%;
  margin: 0 auto 16px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(31, 45, 61, 0.08);
}

.mock-panel {
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(31, 45, 61, 0.08);
  backdrop-filter: blur(10px);
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mock-row h3 {
  margin: 0;
  font-size: 1.26rem;
}

.round-plus {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
}

.library-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.library-pills span {
  padding: 8px 12px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
}

.library-pills span:first-child {
  background: #b9d8e8;
  box-shadow: inset 0 0 0 1px rgba(31, 45, 61, 0.18);
}

.mock-search {
  margin: 14px 0;
  padding: 13px 18px;
  color: rgba(91, 110, 127, 0.56);
  font-weight: 850;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 10px;
  padding-bottom: 62px;
}

.book-grid article {
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.book-grid img {
  width: 100%;
  aspect-ratio: 3 / 4.25;
  object-fit: cover;
  border-radius: 9px;
  box-shadow: 0 10px 18px rgba(31, 45, 61, 0.13);
}

.book-grid strong {
  display: -webkit-box;
  min-height: 2.35em;
  margin-top: 6px;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.16;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mock-tabbar {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 9px;
  color: var(--slate);
  font-size: 0.58rem;
  font-weight: 900;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  backdrop-filter: blur(12px);
}

.mock-tabbar strong {
  color: var(--ink);
  background: rgba(246, 217, 107, 0.42);
  border-radius: 999px;
}

.mock-topbar,
.details-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  backdrop-filter: blur(10px);
}

.mock-topbar span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

.mock-topbar img {
  width: 150px;
  height: 42px;
  object-fit: cover;
  object-position: center;
}

.create-hero {
  position: relative;
  margin: 18px 0 16px;
  overflow: hidden;
  border-radius: 20px;
}

.create-hero img {
  width: 100%;
  height: 154px;
  object-fit: cover;
  filter: saturate(0.92);
}

.create-hero h3 {
  position: absolute;
  bottom: 25px;
  left: 18px;
  margin: 0;
  padding: 9px 18px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
}

.app-create-screen h4 {
  margin: 0 8px 16px;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.2;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 16px;
}

.source-grid span {
  display: grid;
  place-items: end center;
  min-height: 78px;
  padding: 10px 7px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 950;
  text-align: center;
  background: rgba(255, 255, 255, 0.84);
  border-radius: 16px;
}

.pages-panel {
  padding: 15px;
  background: rgba(255, 255, 255, 0.66);
  border-radius: 22px;
  backdrop-filter: blur(10px);
}

.pages-panel .mock-row span {
  padding: 6px 13px;
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
}

.empty-pages {
  margin-top: 12px;
  padding: 24px 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.56);
  border-radius: 18px;
}

.empty-pages img {
  width: 74px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.empty-pages strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 950;
}

.empty-pages p {
  margin: 6px 0 0;
  color: var(--slate);
  font-size: 0.76rem;
}

.details-bar {
  margin-top: 16px;
}

.details-bar strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
}

.details-bar span {
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 900;
}

.reader-controls span {
  display: block;
  padding: 10px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid rgba(31, 45, 61, 0.08);
  border-radius: 8px;
}

.reader-screen {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background: var(--ink);
}

.reader-screen img {
  width: 100%;
  margin-top: 42px;
  border-radius: 8px;
}

.reader-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.reader-controls span {
  padding: 9px 4px;
  text-align: center;
}

figcaption {
  max-width: 320px;
  margin: 0 auto;
  color: var(--slate);
  font-size: 0.98rem;
  line-height: 1.55;
}

figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.free-library-section {
  background:
    linear-gradient(rgba(255, 250, 241, 0.9), rgba(255, 250, 241, 0.78)),
    url("/assets/lullashelf-dream-background.png") center / cover;
}

.free-book-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(10px, 1.3vw, 16px);
}

.free-book-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  min-height: 0;
  padding: 8px;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(31, 45, 61, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(31, 45, 61, 0.1);
}

.book-cover {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  color: var(--ink);
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(167, 211, 232, 0.34), rgba(246, 217, 107, 0.34));
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(31, 45, 61, 0.12);
}

.book-cover img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.book-cover span {
  padding: 10px;
}

.book-card-summary {
  display: grid;
  gap: 7px;
  align-content: start;
}

.book-visible-details {
  display: grid;
  gap: 6px;
}

.free-book-card h3 {
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.12;
}

.free-book-card p {
  margin-bottom: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

.free-book-card textarea {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.copy-book-button {
  width: 100%;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  font: inherit;
  font-weight: 950;
  background: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.book-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 6px;
}

.book-more-button {
  min-height: 32px;
  border: 0;
  padding: 7px 9px;
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  background: rgba(31, 45, 61, 0.08);
  border-radius: 999px;
  cursor: pointer;
}

.book-card-actions .copy-book-button,
.book-card-actions .book-pending {
  min-height: 32px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.copy-book-button:focus-visible {
  outline: 3px solid rgba(31, 45, 61, 0.22);
  outline-offset: 3px;
}

.library-browser {
  display: grid;
  gap: 22px;
}

.library-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(6, minmax(130px, 1fr)) minmax(96px, 0.55fr) minmax(86px, 0.5fr);
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid rgba(31, 45, 61, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(31, 45, 61, 0.1);
}

.library-filters label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.library-filters input,
.library-filters select,
.library-filters button {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(31, 45, 61, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  background: var(--white);
}

.library-filters button {
  color: var(--white);
  font-weight: 950;
  background: var(--ink);
  cursor: pointer;
}

.library-status {
  color: var(--slate);
  font-weight: 900;
}

.library-empty {
  grid-column: 1 / -1;
  padding: 18px;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(31, 45, 61, 0.1);
  border-radius: 8px;
}

.book-meta-line {
  color: #536371;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.4;
}

.book-detail-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 5px 10px;
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.45;
}

.book-detail-list dt {
  color: var(--ink);
  font-weight: 950;
}

.book-detail-list dd {
  min-width: 0;
  margin: 0;
}

.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.book-tags span {
  padding: 5px 8px;
  color: #536371;
  font-size: 0.78rem;
  font-weight: 850;
  background: rgba(167, 211, 232, 0.28);
  border-radius: 999px;
}

.book-popularity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #536371;
  font-size: 0.7rem;
  font-weight: 850;
}

.book-stars {
  display: inline-flex;
  gap: 2px;
  color: rgba(31, 45, 61, 0.2);
  font-size: 0.78rem;
  line-height: 1;
}

.book-stars .is-filled {
  color: var(--champagne);
  text-shadow: 0 1px 0 rgba(31, 45, 61, 0.18);
}

.book-rating-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 950;
}

.book-rating-controls span {
  margin-right: 2px;
}

.book-rating-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(31, 45, 61, 0.14);
  color: var(--ink);
  font: inherit;
  font-weight: 950;
  background: var(--white);
  border-radius: 999px;
  cursor: pointer;
}

.book-rating-controls button:hover,
.book-rating-controls button:focus-visible {
  border-color: rgba(31, 45, 61, 0.34);
  outline: 0;
}

.book-rating-controls button:disabled {
  color: rgba(31, 45, 61, 0.32);
  cursor: not-allowed;
}

.book-pending {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-weight: 950;
  background: rgba(31, 45, 61, 0.08);
  border-radius: 999px;
}

.book-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(31, 45, 61, 0.48);
}

.book-modal {
  position: relative;
  width: min(980px, 94vw);
  max-height: 90vh;
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--white);
  border: 1px solid rgba(31, 45, 61, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(31, 45, 61, 0.24);
}

.book-modal h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.book-modal p {
  margin: 0;
  color: var(--slate);
  font-size: 1rem;
}

.book-modal-close {
  justify-self: end;
  min-height: 36px;
  border: 0;
  padding: 8px 12px;
  color: var(--white);
  font: inherit;
  font-weight: 950;
  background: var(--ink);
  border-radius: 999px;
  cursor: pointer;
}

.book-preview-viewer {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 112px;
  gap: 14px;
  align-items: center;
}

.book-preview-frame {
  margin: 0;
  display: grid;
  gap: 8px;
  min-height: min(62vh, 620px);
  place-items: center;
}

.book-preview-frame img {
  width: 100%;
  height: min(62vh, 620px);
  object-fit: contain;
  border-radius: 8px;
  background: #f8f1df;
  box-shadow: 0 12px 30px rgba(31, 45, 61, 0.12);
}

.book-preview-frame figcaption {
  color: #536371;
  font-size: 0.78rem;
  font-weight: 950;
  text-align: center;
}

.book-preview-nav {
  min-height: 42px;
  border: 1px solid rgba(31, 45, 61, 0.18);
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 950;
  background: #fff8e7;
  border-radius: 8px;
  cursor: pointer;
}

.book-preview-nav:disabled {
  opacity: 0.42;
  cursor: default;
}

.book-modal-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 7px 12px;
  margin: 0;
  color: var(--slate);
  font-size: 0.92rem;
}

.book-modal-meta dt {
  color: var(--ink);
  font-weight: 950;
}

.book-modal-meta dd {
  margin: 0;
}

.how-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1.25fr);
  gap: clamp(26px, 6vw, 76px);
  background: linear-gradient(135deg, rgba(255, 250, 241, 0.9), rgba(246, 217, 107, 0.2));
}

.how-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.how-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(31, 45, 61, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(31, 45, 61, 0.07);
}

.how-list li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 950;
  background: var(--champagne);
  border-radius: 50%;
}

.how-list h3 {
  margin-bottom: 6px;
}

.how-list p {
  margin-bottom: 0;
}

.privacy-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  background: linear-gradient(135deg, rgba(167, 211, 232, 0.42), rgba(199, 190, 230, 0.36));
}

.privacy-copy {
  max-width: 680px;
}

.privacy-band img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(31, 45, 61, 0.16);
}

.legal-section {
  background: rgba(247, 243, 234, 0.86);
}

.legal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-document-hero {
  padding: clamp(96px, 13vw, 150px) clamp(24px, 5vw, 72px) clamp(38px, 7vw, 78px);
  background: linear-gradient(135deg, rgba(247, 243, 234, 0.96), rgba(221, 237, 244, 0.8));
}

.legal-document-hero h1 {
  max-width: 900px;
}

.legal-document-hero > p {
  max-width: 760px;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.legal-document {
  background: var(--white);
  max-width: 980px;
  margin: 0 auto;
}

.legal-document h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.legal-document h2 {
  margin-top: 42px;
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.legal-document h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.legal-document p,
.legal-document li {
  color: rgba(46, 38, 38, 0.76);
  line-height: 1.7;
}

.legal-document ul {
  margin: 10px 0 24px;
  padding-left: 22px;
}

.legal-document code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(126, 164, 183, 0.14);
  color: var(--ink);
  font-size: 0.92em;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--ink);
}

.contact-section h2,
.contact-section .contact-card,
.contact-section .eyebrow {
  color: var(--white);
}

.contact-section p {
  color: rgba(255, 250, 241, 0.74);
}

.contact-actions {
  display: grid;
  gap: 16px;
}

.newsletter-form {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 250, 241, 0.1);
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: 8px;
}

.newsletter-form h3 {
  margin-bottom: 0;
  color: var(--white);
}

.newsletter-form p {
  margin-bottom: 0;
}

.newsletter-form label {
  display: grid;
  gap: 7px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
}

.newsletter-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
  border: 1px solid rgba(255, 250, 241, 0.28);
  border-radius: 8px;
}

.newsletter-form button {
  min-height: 46px;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 950;
  background: var(--champagne);
  border-radius: 8px;
  cursor: pointer;
}

.newsletter-status {
  min-height: 1.3em;
  font-size: 0.95rem;
}

.newsletter-status[data-tone="success"] {
  color: #c7f1d4;
}

.newsletter-status[data-tone="error"] {
  color: #ffd3d3;
}

.contact-card {
  display: block;
  padding: 28px;
  text-decoration: none;
  background: rgba(255, 250, 241, 0.1);
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: 8px;
}

.contact-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--champagne);
  font-size: 0.85rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-card strong {
  font-size: clamp(1.25rem, 3vw, 2rem);
  overflow-wrap: anywhere;
}

footer {
  padding: 34px clamp(18px, 6vw, 86px) 46px;
  background: var(--white);
  text-align: center;
}

footer img {
  width: min(420px, 86vw);
}

footer p {
  margin: 4px 0;
}

.fine-print {
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav-dropdown {
    left: 0;
  }

}

@media (max-width: 900px) {
  .hero,
  .creator-hero,
  .legal-hero,
  .two-column,
  .privacy-band,
  .how-section,
  .creator-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .intro-strip,
  .feature-grid,
  .legal-grid,
  .screen-grid,
  .free-book-grid {
    grid-template-columns: 1fr 1fr;
  }

  .library-filters {
    grid-template-columns: 1fr 1fr;
  }

  .book-preview-viewer {
    grid-template-columns: 1fr;
  }

  .book-preview-nav {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

  nav {
    gap: 14px;
    font-size: 0.85rem;
  }

  h1 {
    font-size: 3rem;
  }

  .intro-strip,
  .feature-grid,
  .legal-grid,
  .screen-grid,
  .account-actions,
  .creator-options,
  .creator-card-grid,
  .free-book-grid,
  .library-filters,
  .preview-stack {
    grid-template-columns: 1fr;
  }

  article {
    min-height: 0;
  }

  .phone-frame {
    max-width: 285px;
    border-radius: 32px;
  }

  .how-list li {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 16px;
  }

  .how-list li > span {
    width: 38px;
    height: 38px;
  }
}
