:root {
  --bookie-ink: #2f2622;
  --bookie-muted: #6f6259;
  --bookie-cream: #f7f0e4;
  --bookie-paper: #fff9f0;
  --bookie-accent: #b76745;
  --bookie-accent-soft: #d89573;
  --bookie-sage: #78907b;
  --bookie-border: #d9c6ad;
  --bookie-shadow: 0 14px 34px rgba(60, 39, 19, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--bookie-ink);
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% -10%, rgba(216, 149, 115, 0.26), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(120, 144, 123, 0.22), transparent 28%),
    repeating-linear-gradient(
      -8deg,
      rgba(255, 255, 255, 0.62) 0px,
      rgba(255, 255, 255, 0.62) 2px,
      rgba(246, 234, 216, 0.9) 2px,
      rgba(246, 234, 216, 0.9) 26px
    ),
    var(--bookie-cream);
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  letter-spacing: 0.02em;
  margin: 0;
}

p,
li,
a {
  line-height: 1.62;
}

.bookie-home-pill {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(47, 38, 34, 0.2);
  background: rgba(255, 249, 240, 0.86);
  color: var(--bookie-ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 14px rgba(60, 39, 19, 0.14);
  backdrop-filter: blur(4px);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.bookie-home-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(60, 39, 19, 0.2);
}

.bookie-shell {
  width: min(1120px, calc(100% - 44px));
  margin: 100px auto 48px;
}

.bookie-hero {
  background: linear-gradient(145deg, rgba(255, 249, 240, 0.95), rgba(244, 233, 216, 0.9));
  border: 1px solid var(--bookie-border);
  border-radius: 32px;
  padding: 42px clamp(22px, 4vw, 54px);
  box-shadow: var(--bookie-shadow);
  position: relative;
  overflow: hidden;
}

.bookie-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -70px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(183, 103, 69, 0.34), rgba(183, 103, 69, 0.08));
  pointer-events: none;
}

.bookie-hero.compact {
  margin-bottom: 20px;
}

.bookie-eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--bookie-muted);
  letter-spacing: 0.12em;
}

.bookie-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: 10px;
}

.bookie-claim {
  margin: 0 0 10px;
  font-size: clamp(1.08rem, 2.2vw, 1.36rem);
  color: #4a3b34;
  font-weight: 700;
}

.bookie-subline {
  max-width: 780px;
  margin: 0;
  color: #574b44;
}

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

.bookie-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.bookie-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
}

.bookie-button.primary {
  background: var(--bookie-accent);
  color: #fff;
}

.bookie-button.secondary {
  background: rgba(120, 144, 123, 0.16);
  border: 1px solid rgba(120, 144, 123, 0.45);
  color: #3d5442;
}

.bookie-section {
  margin-top: 26px;
  border-radius: 28px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--bookie-border);
  background: rgba(255, 252, 246, 0.9);
  box-shadow: var(--bookie-shadow);
}

.section-head {
  margin-bottom: 18px;
}

.section-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: var(--bookie-muted);
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feature-card {
  background: linear-gradient(160deg, rgba(255, 248, 237, 0.94), rgba(252, 239, 218, 0.94));
  border-radius: 16px;
  border: 1px solid #e5d6c1;
  padding: 18px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.feature-card p {
  margin: 0;
  color: #594a42;
}

.flow-list {
  margin: 8px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}

.flow-list li {
  background: rgba(247, 240, 228, 0.88);
  border: 1px solid #e5d6c1;
  border-radius: 12px;
  padding: 10px 12px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.screenshot-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dfcab0;
  box-shadow: 0 8px 18px rgba(57, 36, 16, 0.16);
  background: #f2e8d9;
  transform: translateY(0);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.screenshot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 24px rgba(57, 36, 16, 0.24);
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 9 / 19;
  height: auto;
  object-fit: cover;
  display: block;
}

.screenshot-card figcaption {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(126, 92, 65, 0.14);
  background: rgba(255, 248, 237, 0.94);
  color: #5b4f46;
  font-size: 0.93rem;
}

.bookie-privacy-cta {
  margin-top: 26px;
  border-radius: 22px;
  border: 1px solid #d8c2a7;
  background: linear-gradient(150deg, rgba(255, 248, 239, 0.94), rgba(246, 232, 216, 0.92));
  box-shadow: var(--bookie-shadow);
  padding: clamp(20px, 4vw, 30px);
}

.bookie-privacy-cta h2 {
  font-size: clamp(1.38rem, 3.1vw, 2rem);
}

.bookie-privacy-cta p {
  margin: 12px 0 18px;
  color: #5b4f46;
  max-width: 760px;
}

.legal-shell {
  margin-bottom: 24px;
}

.legal-panel {
  border-radius: 28px;
  border: 1px solid var(--bookie-border);
  padding: clamp(18px, 4vw, 34px);
  background: rgba(255, 251, 245, 0.93);
  box-shadow: var(--bookie-shadow);
}

.legal-panel section + section {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed #d8c5ab;
}

.legal-panel h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  margin-bottom: 8px;
}

.legal-panel h3 {
  font-size: 1.02rem;
  margin: 16px 0 8px;
}

.legal-panel p {
  margin: 0;
  color: #554840;
}

.legal-panel p + p {
  margin-top: 10px;
}

.legal-panel ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.legal-panel li {
  margin: 6px 0;
  color: #554840;
}

.legal-panel a,
.bookie-footer a {
  color: #7f3d23;
  font-weight: 700;
}

.legal-panel a:hover,
.bookie-footer a:hover {
  color: #ab5a38;
}

.bookie-footer {
  text-align: center;
  padding: 10px 16px 26px;
  color: #5f5248;
}

.bookie-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: liftIn 0.7s ease forwards;
}

.bookie-shell .reveal:nth-of-type(2) { animation-delay: 0.12s; }
.bookie-shell .reveal:nth-of-type(3) { animation-delay: 0.22s; }
.bookie-shell .reveal:nth-of-type(4) { animation-delay: 0.32s; }
.bookie-shell .reveal:nth-of-type(5) { animation-delay: 0.42s; }

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 780px) {
  .bookie-home-pill {
    top: 12px;
    left: 12px;
    padding: 8px 14px;
    min-height: 42px;
    font-size: 0.9rem;
  }

  .bookie-shell {
    width: calc(100% - 24px);
    margin-top: 72px;
  }

  .bookie-hero {
    border-radius: 24px;
  }

  .bookie-section,
  .legal-panel {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .bookie-button,
  .screenshot-card,
  .bookie-home-pill {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
