/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --parchment: #F9F7F2;
  --ink: #1A232E;
  --sage: #8A9A5B;
  --amber: #D4A373;
  --charcoal: #333333;
  --sage-hover: #7A8A4E;
  --amber-hover: #C4934F;
  --paper: #FFFDF8;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(212, 163, 115, 0.35) transparent;
  scrollbar-width: thin;
}

/* Webkit scrollbar (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 163, 115, 0.3);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 163, 115, 0.55);
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--parchment);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 {
  font-family: 'Lora', serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Paper texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Skip to content (a11y) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--ink);
  color: var(--parchment);
  border-radius: 0 0 6px 6px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--parchment);
  transition: padding 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  box-shadow: 0 2px 12px rgba(26, 35, 46, 0.06);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(26, 35, 46, 0.1);
  background: var(--paper);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s, color 0.2s;
  box-shadow: 0 2px 10px rgba(26, 35, 46, 0.08);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--sage);
  color: var(--sage);
}

.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-btn {
  font-size: 0.95rem;
  padding: 0.6rem 1.5rem;
  background-color: var(--ink);
  color: var(--parchment);
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 35, 46, 0.2);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 5rem 2rem 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(212, 163, 115, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(138, 154, 91, 0.06) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.hero-tagline {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--sage);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  animation: fadeInUp 0.8s ease both;
}

.hero-title {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  min-height: 2.4em;
}

.typed-cursor {
  font-weight: 300;
  color: var(--sage);
  animation: blink 0.8s step-end infinite;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--charcoal);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 0.8s ease 2.5s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  background-color: var(--sage);
  color: var(--parchment);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  opacity: 0;
  animation: fadeInUp 0.8s ease 2.8s both;
}

.hero-cta:hover {
  background-color: var(--sage-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 154, 91, 0.3);
}

.hero-cta svg {
  transition: transform 0.2s;
}

.hero-cta:hover svg {
  transform: translateX(3px);
}

/* Decorative quill */
.hero-quill {
  position: absolute;
  bottom: 2rem;
  right: 8%;
  opacity: 0.06;
  transform: rotate(-25deg);
  z-index: 1;
  color: var(--ink);
}

/* Hero bookshelves */
.hero-shelf {
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  z-index: 1;
  opacity: 0.18;
}

.hero-shelf-left {
  left: 3%;
}

.hero-shelf-right {
  right: 3%;
}

.shelf-book {
  width: var(--w);
  height: var(--h);
  background: var(--c);
  border-radius: 3px 3px 1px 1px;
  transform: rotate(var(--tilt));
  position: relative;
  transition: transform 0.4s, opacity 0.4s;
}

.shelf-book::after {
  content: '';
  position: absolute;
  inset: 10px 5px;
  border: 1px solid rgba(249, 247, 242, 0.12);
  border-radius: 1px;
}

.shelf-book::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(249, 247, 242, 0.08);
  border-radius: 3px 3px 0 0;
}

.hero-shelf:hover .shelf-book {
  opacity: 0.85;
}

.hero-shelf .shelf-book:hover {
  transform: rotate(var(--tilt)) translateY(-10px);
}

/* Ink blots */
.ink-blot {
  position: absolute;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.025;
  z-index: 1;
}

.ink-blot-1 {
  width: 300px;
  height: 300px;
  top: -80px;
  left: -100px;
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  animation: blobFloat 12s ease-in-out infinite;
}

.ink-blot-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: -60px;
  border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%;
  animation: blobFloat 15s ease-in-out infinite reverse;
}

.ink-blot-3 {
  width: 150px;
  height: 150px;
  bottom: -40px;
  left: 30%;
  border-radius: 45% 55% 60% 40% / 60% 45% 55% 45%;
  animation: blobFloat 10s ease-in-out infinite 2s;
}

/* Floating pages */
.floating-page {
  position: absolute;
  background: var(--paper);
  border: 1px solid rgba(26, 35, 46, 0.06);
  border-radius: 2px;
  box-shadow: 2px 3px 10px rgba(26, 35, 46, 0.06);
  z-index: 1;
  opacity: 0.5;
}

.floating-page .page-lines {
  padding: 12px;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 10px,
    rgba(26, 35, 46, 0.05) 10px,
    rgba(26, 35, 46, 0.05) 11px
  );
}

.fp-1 {
  width: 80px;
  height: 110px;
  top: 15%;
  left: 8%;
  transform: rotate(-8deg);
  animation: pageFloat 8s ease-in-out infinite;
}

.fp-2 {
  width: 70px;
  height: 95px;
  top: 25%;
  right: 10%;
  transform: rotate(5deg);
  animation: pageFloat 10s ease-in-out infinite 1s;
}

.fp-3 {
  width: 60px;
  height: 80px;
  bottom: 20%;
  left: 15%;
  transform: rotate(12deg);
  animation: pageFloat 9s ease-in-out infinite 3s;
}

/* ===== Chapter Dividers ===== */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem 2rem;
}

.divider-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--amber);
  opacity: 0.5;
}

.divider-dot {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.5;
}

.divider-icon {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  color: var(--amber);
  opacity: 0.6;
  line-height: 1;
}

/* ===== Hero Steps (inline) ===== */
.hero-steps {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 3.1s both;
}

.hero-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--charcoal);
  font-size: 0.9rem;
}

.hero-step svg {
  color: var(--amber);
  flex-shrink: 0;
}

.hero-step-dot {
  color: var(--amber);
  opacity: 0.4;
  font-size: 1.4rem;
  line-height: 1;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

/* ===== Showcase (What will you create?) ===== */
.showcase {
  padding: 4rem 2rem 5rem;
  max-width: 800px;
  margin: 0 auto;
}

.showcase-sub {
  text-align: center;
  color: var(--charcoal);
  font-size: 1.05rem;
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}

.tag-group {
  margin-bottom: 2rem;
}

.tag-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--paper);
  border: 1px solid rgba(26, 35, 46, 0.08);
  border-radius: 20px;
  font-size: 0.88rem;
  color: var(--ink);
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
  cursor: default;
}

.tag:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
}

.tag-mood:hover {
  background: var(--sage);
  border-color: var(--sage);
}

.tag-more {
  color: var(--amber);
  border-color: var(--amber);
  font-style: italic;
  font-family: 'Lora', serif;
}

.tag-more:hover {
  background: var(--amber);
  color: var(--parchment);
  border-color: var(--amber);
}



/* ===== Excerpt ===== */
.excerpt {
  padding: 4rem 2rem 5rem;
  max-width: 700px;
  margin: 0 auto;
}

.excerpt-page {
  background: var(--paper);
  border: 1px solid rgba(26, 35, 46, 0.08);
  border-radius: 4px;
  padding: 3rem 3.5rem;
  box-shadow:
    0 2px 8px rgba(26, 35, 46, 0.04),
    4px 4px 0 rgba(26, 35, 46, 0.02),
    8px 8px 0 rgba(26, 35, 46, 0.01);
  position: relative;
}

.excerpt-page::before {
  display: none;
}

.excerpt-header {
  text-align: center;
  margin-bottom: 2rem;
}

.excerpt-chapter {
  display: block;
  font-family: 'Lora', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.3rem;
}

.excerpt-title {
  display: block;
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 600;
  font-style: italic;
}

.excerpt-body p {
  font-family: 'Lora', serif;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--charcoal);
  margin-bottom: 1rem;
  text-align: justify;
}

.excerpt-body p:last-child {
  margin-bottom: 0;
}

.drop-cap {
  float: left;
  font-family: 'Lora', serif;
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 0.8;
  padding-right: 0.1em;
  padding-top: 0.05em;
  color: var(--ink);
}

.excerpt-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 35, 46, 0.06);
  text-align: center;
}

.excerpt-meta {
  font-size: 0.8rem;
  color: var(--amber);
  letter-spacing: 0.05em;
  font-style: italic;
}

/* ===== Pricing ===== */
.pricing {
  padding: 4rem 2rem 5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-sub {
  text-align: center;
  color: var(--charcoal);
  font-size: 1.05rem;
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}

.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 2rem;
  background: rgba(26, 35, 46, 0.04);
  border-radius: 8px;
  padding: 0.25rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-tab {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border: none;
  background: none;
  color: var(--charcoal);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.pricing-tab.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(26, 35, 46, 0.08);
}

.pricing-tab:hover:not(.active) {
  color: var(--ink);
}

.pricing-panel {
  display: none;
}

.pricing-panel.active {
  display: block;
}

.pricing-group-sub {
  text-align: center;
  font-size: 0.88rem;
  color: var(--charcoal);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.pricing-cost-detail {
  max-width: 400px;
  margin: 1.5rem auto 0;
}

.pricing-cost-detail summary {
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  text-align: center;
  cursor: pointer;
  letter-spacing: 0.03em;
  list-style: none;
}

.pricing-cost-detail summary::-webkit-details-marker { display: none; }

.pricing-cost-detail summary::after {
  content: ' +';
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.pricing-cost-detail[open] summary::after {
  content: ' \2212';
}

.pricing-cost-detail .pricing-credits-table {
  margin-top: 0.8rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.pricing-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(26, 35, 46, 0.08);
  border-radius: 8px;
  padding: 1.8rem 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(26, 35, 46, 0.08);
}

.pricing-card-popular {
  border-color: var(--sage);
  box-shadow: 0 4px 16px rgba(138, 154, 91, 0.12);
}

.pricing-name {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.pricing-price {
  font-family: 'Lora', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.pricing-period {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--charcoal);
  opacity: 0.6;
}

.pricing-credits {
  font-size: 0.85rem;
  color: var(--sage);
  font-weight: 500;
}

.pricing-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 10px;
  background: rgba(138, 154, 91, 0.1);
  color: var(--sage);
  margin-top: 0.1rem;
}

.pricing-card-popular .pricing-badge {
  background: var(--sage);
  color: var(--parchment);
}

.pricing-perks {
  list-style: none;
  margin: 0.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pricing-perks li {
  font-size: 0.82rem;
  color: var(--charcoal);
}

.pricing-btn {
  display: inline-block;
  margin-top: auto;
  padding: 0.5rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(26, 35, 46, 0.12);
  border-radius: 6px;
  color: var(--ink);
  transition: all 0.2s;
}

.pricing-btn:hover {
  border-color: var(--sage);
  color: var(--sage);
}

.pricing-btn-pop {
  background: var(--sage);
  color: var(--parchment);
  border-color: var(--sage);
}

.pricing-btn-pop:hover {
  background: var(--sage-hover);
  border-color: var(--sage-hover);
  color: var(--parchment);
}

/* Credit cost table */
.pricing-credits-table {
  max-width: 400px;
  margin: 0 auto;
}

.pricing-credits-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(26, 35, 46, 0.04);
  font-size: 0.82rem;
  color: var(--charcoal);
}

.pricing-credits-row em {
  font-style: normal;
  opacity: 0.5;
  margin-left: 0.3rem;
  font-size: 0.75rem;
}

.pricing-credits-row span:last-child {
  font-weight: 500;
  color: var(--ink);
}

/* ===== FAQ ===== */
.faq {
  padding: 4rem 2rem 5rem;
  max-width: 700px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(26, 35, 46, 0.06);
}

.faq-item:first-child {
  border-top: 1px solid rgba(26, 35, 46, 0.06);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq-q:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 4px;
  border-radius: 2px;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: '+';
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--amber);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}

.faq-item[open] .faq-q::after {
  content: '\2212';
}

.faq-q:hover {
  color: var(--sage);
}

.faq-a {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.7;
  padding: 0 0 1.1rem;
  max-width: 600px;
}



/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(26, 35, 46, 0.08);
}

.footer-cta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2rem 2rem;
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: var(--charcoal);
  background: radial-gradient(ellipse at 50% 100%, rgba(138, 154, 91, 0.04) 0%, transparent 70%);
}

.footer-cta-link {
  color: var(--sage);
  font-weight: 600;
  transition: color 0.2s;
}

.footer-cta-link:hover {
  color: var(--sage-hover);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid rgba(26, 35, 46, 0.04);
}

.footer-logo {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--charcoal);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-sep {
  color: var(--charcoal);
  opacity: 0.25;
  font-size: 0.7rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--charcoal);
  opacity: 0.4;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible .reveal-child {
  opacity: 1;
  transform: translateY(0);
}

.reveal.visible .reveal-child:nth-child(1) { transition-delay: 0.1s; }
.reveal.visible .reveal-child:nth-child(2) { transition-delay: 0.2s; }
.reveal.visible .reveal-child:nth-child(3) { transition-delay: 0.3s; }
.reveal.visible .reveal-child:nth-child(4) { transition-delay: 0.4s; }
.reveal.visible .reveal-child:nth-child(5) { transition-delay: 0.5s; }
.reveal.visible .reveal-child:nth-child(6) { transition-delay: 0.6s; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -10px) scale(1.03); }
  66% { transform: translate(-10px, 8px) scale(0.97); }
}

@keyframes pageFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r, -8deg)); }
  50% { transform: translateY(-12px) rotate(calc(var(--r, -8deg) + 3deg)); }
}

.fp-1 { --r: -8deg; }
.fp-2 { --r: 5deg; }
.fp-3 { --r: 12deg; }

/* ===== Responsive ===== */

/* ===== Page Transition ===== */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--parchment);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.2rem;
  }

  .nav-logo {
    font-size: 1.25rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .nav-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .hero {
    padding: 3rem 1.2rem 2.5rem;
  }

  .hero-title {
    font-size: 2.4rem;
    min-height: 3.2em;
  }

  .hero-sub {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-quill,
  .floating-page,
  .hero-shelf {
    display: none;
  }

  .hero-steps {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .hero-step-dot {
    display: none;
  }

  .hero-step {
    font-size: 0.82rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .showcase {
    padding: 3rem 1.2rem 4rem;
  }

  .showcase-sub {
    font-size: 0.95rem;
  }

  .tag {
    font-size: 0.82rem;
    padding: 0.4rem 0.85rem;
  }

  .excerpt {
    padding: 3rem 1.2rem 4rem;
  }

  .excerpt-page {
    padding: 1.8rem 1.2rem;
  }

  .excerpt-title {
    font-size: 1.3rem;
  }

  .excerpt-body p {
    font-size: 0.92rem;
    text-align: left;
  }

  .drop-cap {
    font-size: 2.8rem;
  }

  .pricing {
    padding: 3rem 1.2rem 4rem;
  }

  .pricing-sub {
    font-size: 0.95rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .pricing-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card {
    padding: 1.4rem 1rem;
  }

  .pricing-price {
    font-size: 1.8rem;
  }

  .faq {
    padding: 3rem 1.2rem 4rem;
  }

  .faq-q {
    font-size: 0.92rem;
    padding: 0.9rem 0;
  }

  .faq-a {
    font-size: 0.88rem;
  }

  .divider {
    padding: 1.8rem 1rem;
  }

  .footer-cta-bar {
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.92rem;
    padding: 1.5rem 1.2rem;
  }

  .footer-bottom {
    padding: 1.2rem 1.2rem 1.5rem;
  }

  .back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.6rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .nav-btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.8rem;
  }

  .hero-tagline {
    font-size: 0.92rem;
  }

  .hero-title {
    font-size: 1.8rem;
    min-height: 3.2em;
  }

  .hero-cta {
    padding: 0.75rem 1.8rem;
    font-size: 0.92rem;
  }

  .divider-line {
    width: 30px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid-2 {
    grid-template-columns: 1fr;
  }

  .pricing-tabs {
    max-width: 100%;
  }

  .pricing-tab {
    font-size: 0.8rem;
    padding: 0.45rem 0.6rem;
  }
}
