:root {
  color-scheme: light;
  --paper: #f4f1eb;
  --paper-light: #f8f6f1;
  --paper-muted: #ecece6;
  --ink: #18201d;
  --jade: #315c4a;
  --jade-deep: #224a39;
  --muted: #68716b;
  --line: rgba(49, 92, 74, .25);
  --line-soft: rgba(24, 32, 29, .13);
  --display: "Newsreader", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --z-header: 20;
  --z-nav: 60;
  --z-dialog: 100;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a, button { color: inherit; font: inherit; touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--jade-deep); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 120;
  padding: 10px 14px;
  background: var(--jade-deep);
  color: var(--paper-light);
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms ease-out;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 52px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(244, 241, 235, .94);
}

.wordmark {
  min-width: 74px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-family: var(--display);
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.055em;
  text-decoration: none;
}

.product-nav { display: flex; align-items: center; gap: clamp(36px, 4.2vw, 66px); }
.product-nav--mobile { display: none; }

.nav-item {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 44px;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-item::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  background: var(--jade);
  content: "";
  opacity: 0;
  transform: scaleX(.65);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-item:hover, .nav-item.is-active { color: var(--jade-deep); }
.nav-item.is-active::after { opacity: 1; transform: scaleX(1); }

.eyebrow, .micro-label {
  margin: 0;
  color: var(--jade-deep);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.reading-tail {
  min-height: 360px;
  display: grid;
  grid-template-columns: 62px minmax(0, 720px);
  gap: 28px;
  align-content: center;
  padding: 86px max(7vw, 72px);
  background-color: var(--paper-light);
  background-image: url('/assets/ink-mirror/reading-section-transition-desktop-v101.jpg');
  background-position: center 42%;
  background-size: cover;
}

.conclusion-index { margin: 6px 0 0; color: var(--jade-deep); font-size: 12px; font-weight: 600; letter-spacing: .17em; }
.reading-tail h1 { margin: 16px 0 17px; font-family: var(--display); font-size: clamp(40px, 4.3vw, 62px); font-weight: 400; line-height: 1.02; letter-spacing: -.04em; }
.reading-tail div > p:last-child { max-width: 620px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.life-book-transition {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: center;
  gap: 70px;
  padding: 70px max(7vw, 72px) 78px;
  background: var(--jade-deep);
  color: var(--paper-light);
}

.life-book-transition > div:first-child { max-width: 740px; }
.life-book-transition .eyebrow { color: #b8c9bf; }
.life-book-transition h1 { margin: 16px 0 12px; font-family: var(--display); font-size: clamp(48px, 5vw, 70px); font-weight: 400; line-height: .98; letter-spacing: -.045em; }
.life-book-transition > div:first-child > p:last-child { margin: 0; color: rgba(248, 246, 241, .72); font-size: 15px; line-height: 1.6; }
.life-book-action { width: 100%; }
.light-action { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 23px; border: 1px solid rgba(248, 246, 241, .84); background: var(--paper-light); color: var(--jade-deep); font-size: 14px; font-weight: 600; text-decoration: none; transition: background 180ms ease, color 180ms ease; }
.light-action:hover { background: transparent; color: var(--paper-light); }
.life-book-action > p { margin: 12px 0 0; color: rgba(248, 246, 241, .68); font-size: 11px; }

.blueprint-offer {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(360px, .78fr) minmax(520px, 1.22fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 52px clamp(60px, 7vw, 112px);
  padding: clamp(76px, 7vw, 104px) max(6vw, 72px) clamp(84px, 8vw, 118px);
  scroll-margin-top: 0;
  border-bottom: 1px solid var(--line-soft);
  background-color: var(--paper);
  background-image: url('/assets/ink-mirror/reader-mode-desktop-v101.jpg');
  background-position: center top;
  background-size: cover;
}

.offer-copy { align-self: start; max-width: 620px; }
.offer-copy h1 { margin: 17px 0 22px; font-family: var(--display); font-size: clamp(54px, 5.4vw, 78px); font-weight: 400; line-height: .94; letter-spacing: -.05em; }
.offer-deck { max-width: 560px; margin: 0; color: #4c5751; font-family: var(--display); font-size: clamp(20px, 1.65vw, 25px); line-height: 1.42; }

.product-difference { margin: 32px 0 0; border-top: 1px solid var(--line); }
.product-difference > div { display: grid; grid-template-columns: 140px 1fr; gap: 22px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.product-difference dt { font-size: 11px; font-weight: 600; line-height: 1.55; }
.product-difference dt span { display: block; margin-bottom: 3px; color: var(--jade); font-size: 8px; letter-spacing: .14em; }
.product-difference dd { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.58; }

.timing-proof {
  min-width: 0;
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(210px, .7fr) minmax(280px, 1fr);
  align-self: stretch;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(248, 246, 241, .86);
}

.report-preview { position: relative; min-width: 0; overflow: hidden; border: 0; border-right: 1px solid var(--line); padding: 28px 28px 50px; background: #e2e5df; cursor: zoom-in; }
.report-preview img { display: block; width: 100%; height: auto; max-height: 350px; object-fit: contain; object-position: top; border: 1px solid rgba(24, 32, 29, .16); box-shadow: 0 18px 36px rgba(24, 32, 29, .12); transition: transform 220ms ease; }
.report-preview:hover img { transform: translateY(-3px); }
.report-preview span { position: absolute; right: 28px; bottom: 21px; left: 28px; color: var(--jade-deep); font-size: 8px; font-weight: 600; letter-spacing: .13em; text-align: left; }

.timing-example { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(30px, 4vw, 54px); }
.timing-example h2 { margin: 17px 0 18px; font-family: var(--display); font-size: clamp(36px, 3.5vw, 50px); font-weight: 400; line-height: .98; letter-spacing: -.04em; }
.timing-example > p:nth-of-type(2) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.example-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--jade-deep); font-size: 8px; font-weight: 600; line-height: 1.5; letter-spacing: .07em; }
.example-meta span { display: inline-flex; align-items: center; gap: 7px; }

.purchase-rail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(320px, 1fr) minmax(300px, .68fr);
  align-items: center;
  gap: 40px;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 246, 241, .62);
}

.purchase-title h2 { margin: 9px 0 0; font-family: var(--display); font-size: 27px; font-weight: 400; line-height: 1.05; letter-spacing: -.025em; }
.purchase-details { display: grid; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.purchase-details p { margin: 0; }
.purchase-details p:first-child { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 11px; font-weight: 600; }
.purchase-details svg { color: var(--jade); }
.purchase-action { justify-self: end; width: min(100%, 320px); }
.price-line { display: flex; align-items: baseline; gap: 10px; margin-bottom: 11px; }
.price-line strong { font-family: var(--display); font-size: 29px; font-weight: 400; }
.price-line span { color: var(--muted); font-size: 9px; }
.primary-action { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; background: var(--jade-deep); border: 1px solid var(--jade-deep); color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; transition: background 180ms ease, color 180ms ease; }
.primary-action:hover { background: transparent; color: var(--jade-deep); }
.purchase-action > p { display: flex; align-items: center; gap: 6px; margin: 9px 0 0; color: var(--muted); font-size: 8px; }
.purchase-action > p svg:nth-of-type(2) { margin-left: 7px; }

.dialog-backdrop { position: fixed; inset: 0; z-index: var(--z-dialog); display: grid; place-items: center; padding: 18px; background: rgba(15, 22, 19, .68); backdrop-filter: blur(7px); }
.preview-dialog { position: relative; width: min(100%, 880px); max-height: calc(100vh - 36px); display: grid; grid-template-columns: minmax(300px, .9fr) minmax(300px, .72fr); overflow: hidden; background: var(--paper-light); box-shadow: 0 30px 90px rgba(0, 0, 0, .32); outline: none; }
.dialog-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(248, 246, 241, .92); cursor: pointer; }
.dialog-image { min-height: 0; overflow: auto; padding: 28px; background: #e1e5df; }
.dialog-image img { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(24, 32, 29, .13); }
.dialog-copy { display: flex; flex-direction: column; justify-content: center; padding: 50px; }
.dialog-copy h2 { margin: 14px 0 15px; font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1.03; letter-spacing: -.035em; }
.dialog-copy > p:last-of-type { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.dialog-copy a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--jade-deep); font-size: 11px; font-weight: 600; text-decoration: none; }

@media (max-width: 1080px) {
  .blueprint-offer { grid-template-columns: minmax(320px, .75fr) minmax(420px, 1.1fr); gap: 42px; }
  .timing-proof { grid-template-columns: 190px 1fr; }
  .purchase-rail { grid-template-columns: 1fr 1fr; }
  .purchase-action { grid-column: 2; grid-row: 1 / span 2; }
}

@media (min-width: 821px) and (max-width: 940px) {
  .blueprint-offer {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 32px;
    padding-left: 32px;
  }
  .timing-proof { grid-template-columns: 190px minmax(0, 1fr); width: 100%; }
  .purchase-rail { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); }
}

@media (max-width: 820px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .site-header { min-height: 58px; padding: max(7px, env(safe-area-inset-top)) 20px 5px; }
  .site-header > .product-nav { display: none; }
  .wordmark { min-height: 44px; font-size: 24px; }
  .product-nav--mobile { position: fixed; right: 0; bottom: 0; left: 0; z-index: var(--z-nav); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: calc(60px + env(safe-area-inset-bottom)); padding: 0 12px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(244, 241, 235, .96); backdrop-filter: blur(16px); }
  .product-nav--mobile .nav-item { min-width: 0; min-height: 44px; justify-content: center; padding: 0 3px; font-size: 12px; line-height: 44px; }
  .product-nav--mobile .nav-item::after { top: 0; right: 4px; bottom: auto; left: 4px; }

  .reading-tail { min-height: 390px; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding: 70px 24px 60px; background-image: url('/assets/ink-mirror/reading-section-transition-mobile-v101.jpg'); }
  .reading-tail h1 { font-size: clamp(37px, 10vw, 46px); }
  .reading-tail div > p:last-child { font-size: 13px; }

  .life-book-transition { min-height: auto; grid-template-columns: 1fr; gap: 30px; padding: 62px 24px 66px; }
  .life-book-transition h1 { font-size: 47px; }
  .life-book-transition > div:first-child > p:last-child { font-size: 13px; }

  .blueprint-offer { min-height: auto; display: flex; flex-direction: column; gap: 30px; padding: 58px 20px 98px; background-image: url('/assets/ink-mirror/reader-mode-mobile-v101.jpg'); scroll-margin-top: 0; }
  .offer-copy h1 { margin: 14px 0 16px; font-size: clamp(44px, 12.4vw, 52px); line-height: .95; }
  .offer-deck { font-size: 18px; line-height: 1.42; }
  .product-difference { margin-top: 24px; }
  .product-difference > div { grid-template-columns: 110px 1fr; gap: 13px; padding: 13px 0; }
  .product-difference dt, .product-difference dd { font-size: 10px; }

  .timing-proof { min-height: 240px; grid-template-columns: 112px minmax(0, 1fr); width: 100%; }
  .report-preview { min-height: 240px; padding: 16px 12px 40px; }
  .report-preview img { max-height: 180px; }
  .report-preview span { right: 10px; bottom: 14px; left: 10px; font-size: 6px; line-height: 1.4; }
  .timing-example { padding: 21px 18px; }
  .timing-example .micro-label { font-size: 7px; }
  .timing-example h2 { margin: 11px 0 10px; font-size: 29px; }
  .timing-example > p:nth-of-type(2) { font-size: 10px; line-height: 1.55; }
  .example-meta { display: grid; justify-content: start; gap: 6px; margin-top: 14px; padding-top: 10px; font-size: 6px; }

  .purchase-rail { display: flex; flex-direction: column; align-items: stretch; gap: 17px; width: 100%; padding: 23px 0 0; border-bottom: 0; background: transparent; }
  .purchase-title h2 { font-size: 28px; }
  .purchase-details { gap: 5px; }
  .purchase-action { width: 100%; }
  .price-line { margin-bottom: 9px; }
  .primary-action { min-height: 56px; font-size: 13px; }
  .purchase-action > p { justify-content: flex-start; }

  .preview-dialog { max-height: calc(100vh - 24px); grid-template-columns: 1fr; overflow-y: auto; }
  .dialog-image { max-height: 52vh; padding: 20px; }
  .dialog-copy { padding: 30px 24px 34px; }
  .dialog-copy h2 { font-size: 34px; }
}

@media (max-width: 360px) {
  .blueprint-offer { padding-inline: 17px; }
  .offer-copy h1 { font-size: 43px; }
  .product-difference > div { grid-template-columns: 94px 1fr; }
  .timing-proof { grid-template-columns: 98px minmax(0, 1fr); }
  .timing-example { padding-inline: 14px; }
  .timing-example h2 { font-size: 26px; }
}

@media (orientation: landscape) and (max-height: 500px) and (min-width: 600px) {
  body { padding-bottom: 0; }
  .site-header { min-height: 50px; padding: 3px 24px; }
  .wordmark { min-height: 40px; }
  .blueprint-offer { min-height: calc(100vh - 50px); display: grid; grid-template-columns: .8fr 1.2fr; grid-template-rows: 1fr; gap: 28px; padding: 28px 26px 38px; }
  .offer-copy h1 { font-size: 41px; }
  .offer-deck { font-size: 15px; }
  .product-difference { margin-top: 16px; }
  .product-difference > div { grid-template-columns: 90px 1fr; padding: 8px 0; }
  .timing-proof { min-height: 276px; grid-template-columns: 120px 1fr; }
  .report-preview { min-height: 276px; }
  .timing-example { padding: 22px; }
  .timing-example h2 { font-size: 30px; }
  .purchase-rail { grid-column: 1 / -1; display: grid; grid-template-columns: .9fr 1fr .8fr; gap: 20px; padding-top: 20px; }
  .product-nav--mobile { display: none; }
}

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