:root {
  --paper: #f6efde;
  --paper-deep: #ead9b8;
  --ink: #2d2418;
  --muted: #665947;
  --accent: #2f6a52;
  --accent-dark: #224c3b;
  --panel: rgba(255, 250, 240, 0.78);
  --border: rgba(84, 64, 35, 0.14);
  --shadow: 0 30px 80px rgba(77, 58, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.45), transparent 30%),
    radial-gradient(circle at right 10% top 15%, rgba(230, 196, 123, 0.25), transparent 20%),
    linear-gradient(180deg, rgba(255, 248, 232, 0.95), rgba(239, 227, 200, 0.98)),
    repeating-linear-gradient(
      0deg,
      rgba(124, 96, 52, 0.03),
      rgba(124, 96, 52, 0.03) 1px,
      transparent 1px,
      transparent 18px
    );
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08)),
    radial-gradient(rgba(123, 90, 39, 0.08) 0.8px, transparent 0.8px);
  background-size: auto, 14px 14px;
}

.page-shell {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.page-shell-policy {
  width: min(920px, calc(100% - 32px));
}

.hero,
.section,
.cta-panel {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 36px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.78), rgba(246, 238, 221, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(102, 89, 71, 0.12);
  border-radius: 24px;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  text-align: left;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.logo-frame {
  width: min(320px, 70%);
  min-height: 112px;
  display: flex;
  align-items: center;
}

.brand-logo {
  max-width: 100%;
  max-height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(55, 36, 12, 0.08));
}

.logo-fallback {
  display: none;
  width: 100%;
  min-height: 112px;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  border: 2px dashed rgba(47, 106, 82, 0.36);
  border-radius: 20px;
  color: var(--accent-dark);
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  text-align: center;
  background: rgba(255, 255, 255, 0.45);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 1.02;
}

h1 {
  margin-top: 14px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

h3 {
  font-size: 1.45rem;
}

.lede,
.hero-points,
.feature-card p,
.screenshot-card figcaption,
.cta-panel p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.03rem;
}

.lede {
  max-width: 64ch;
  margin: 20px 0 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  gap: 10px;
  background: var(--accent);
  color: #fffdf8;
  box-shadow: 0 16px 32px rgba(47, 106, 82, 0.24);
}

.button-primary::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-image: url("/assets/escape-the-paper-logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: brightness(0) invert(1);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(66, 53, 31, 0.12);
}

.hero-points {
  margin: 22px 0 0;
  padding-left: 20px;
}

.hero-card {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-self: stretch;
}

.hero-shot-frame {
  position: relative;
  width: min(100%, 680px);
  min-height: 480px;
  padding: 18px 0 0 18px;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.2) 45%, transparent 72%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.78), rgba(241, 232, 212, 0.48));
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-shot-frame:hover,
.hero-shot-frame:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(77, 58, 27, 0.14);
  outline: none;
}

.hero-shot {
  display: block;
  width: min(158%, 1080px);
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: top left;
  filter: drop-shadow(0 38px 56px rgba(77, 58, 27, 0.2));
}

.section {
  margin-top: 28px;
  padding: 38px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.proof-strip {
  margin-top: 28px;
  padding: 18px 24px;
  border-radius: 24px;
  border: 1px solid rgba(34, 76, 59, 0.16);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(47, 106, 82, 0.22), rgba(34, 76, 59, 0.16) 55%, rgba(198, 164, 91, 0.16));
  box-shadow: 0 24px 56px rgba(44, 72, 56, 0.12);
}

.proof-strip p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  min-height: 68px;
  color: var(--accent-dark);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.proof-strip span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.proof-check {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 76, 59, 0.14);
  color: var(--accent-dark);
  font-size: 0.88rem;
  line-height: 1;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 60ch;
  margin-bottom: 26px;
}

.feature-grid,
.screenshot-grid {
  display: grid;
  gap: 18px;
}

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

.feature-card,
.screenshot-card {
  margin: 0;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(84, 64, 35, 0.1);
  background: rgba(255, 255, 255, 0.5);
}

.feature-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
}

.feature-icon-slot {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  border: 1px solid rgba(84, 64, 35, 0.1);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.5) 48%, rgba(237, 225, 199, 0.45)),
    rgba(255, 252, 247, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: 1 / span 2;
}

.feature-icon {
  max-width: 30px;
  max-height: 30px;
  display: block;
}

.feature-card h3 {
  align-self: center;
}

.feature-card p {
  margin: 8px 0 0;
}

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

.screenshot-card img {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(84, 64, 35, 0.1);
  background: #f8f0e0;
}

.screenshot-card {
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.screenshot-card:hover,
.screenshot-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(77, 58, 27, 0.12);
  border-color: rgba(47, 106, 82, 0.24);
  outline: none;
}

.screenshot-card figcaption {
  margin-top: 14px;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 25, 16, 0.7);
  backdrop-filter: blur(10px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.97), rgba(244, 235, 216, 0.95));
  box-shadow: 0 36px 90px rgba(16, 12, 6, 0.35);
}

.lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-left: auto;
  margin-bottom: 12px;
  padding: 0 16px;
  border: 1px solid rgba(84, 64, 35, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-image {
  width: 100%;
  max-height: calc(100vh - 160px);
  display: block;
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid rgba(84, 64, 35, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.lightbox-caption {
  margin: 14px 8px 4px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(84, 64, 35, 0.1);
  background: rgba(255, 255, 255, 0.52);
}

.faq-item h3 {
  font-size: 1.3rem;
  line-height: 1.15;
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.faq-points {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.bottom-cta {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.9), rgba(233, 220, 191, 0.9)),
    repeating-linear-gradient(
      90deg,
      rgba(123, 91, 42, 0.04),
      rgba(123, 91, 42, 0.04) 1px,
      transparent 1px,
      transparent 20px
    );
}

.cta-panel {
  text-align: center;
}

.cta-panel h2 {
  max-width: 12ch;
  margin: 0 auto;
}

.cta-panel p {
  max-width: 58ch;
  margin: 16px auto 0;
}

.cta-panel .button {
  margin-top: 24px;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 18px 8px 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: rgba(68, 56, 39, 0.78);
}

.site-footer a {
  color: var(--accent-dark);
}

.policy-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.75);
  box-shadow: var(--shadow);
}

.policy-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
}

.policy-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.policy-home-link {
  min-height: 44px;
}

.policy-section {
  padding: 40px;
}

.policy-intro {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(84, 64, 35, 0.1);
}

.policy-effective {
  margin: 10px 0 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.policy-block {
  margin-top: 28px;
}

.policy-block h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.policy-block p,
.policy-block li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.policy-block p {
  margin: 14px 0 0;
}

.policy-block ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.policy-block a {
  color: var(--accent-dark);
}

.policy-block code {
  padding: 0.08rem 0.35rem;
  border-radius: 6px;
  background: rgba(47, 106, 82, 0.09);
  color: var(--accent-dark);
  font-size: 0.95em;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px;
  }

  .hero-card {
    align-self: auto;
  }

  .hero-shot-frame {
    width: 100%;
    min-height: 360px;
    padding: 12px 0 0 12px;
  }

  .feature-grid,
  .screenshot-grid,
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .policy-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1160px);
    padding-top: 12px;
    padding-bottom: 36px;
  }

  .hero,
  .section {
    padding: 22px;
    border-radius: 22px;
  }

  .policy-section {
    padding: 24px;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .logo-frame {
    width: min(100%, 260px);
    min-height: 84px;
  }

  .brand-logo,
  .logo-fallback {
    max-height: 84px;
    min-height: 84px;
  }

  .hero {
    padding: 22px;
  }

  .hero-shot-frame {
    min-height: 250px;
    padding: 8px 0 0 8px;
  }

  .hero-shot {
    width: 175%;
  }

  .button {
    width: 100%;
  }

  .policy-home-link {
    width: 100%;
  }
}
