:root {
  --paper: #f6f1e8;
  --paper-deep: #e9dfcf;
  --ink: #11110f;
  --ink-soft: #302f2b;
  --muted: #6c665d;
  --line: #d7cbbb;
  --accent: #e33b27;
  --accent-dark: #b72b1d;
  --white: #fffaf2;
  --shadow: 0 28px 80px rgb(17 17 15 / 16%);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1rem 0;
  border-bottom: 1px solid rgb(17 17 15 / 10%);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  width: 0.75rem;
  height: 0.75rem;
  background: var(--accent);
  border-radius: 999px;
}

.top-nav {
  display: none;
}

.top-nav a {
  color: var(--muted);
  font-size: 0.92rem;
}

.header-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  gap: 3rem;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 1.1rem;
}

.eyebrow {
  color: var(--accent);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 0.96;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 500;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 7vw, 5.3rem);
  font-weight: 500;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-subtitle {
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.6vw, 1.24rem);
}

.hero-actions {
  display: grid;
  gap: 0.85rem;
  align-items: center;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 800;
  text-align: center;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button:focus-visible,
.header-cta:focus-visible,
.top-nav a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(227 59 39 / 35%);
  outline-offset: 3px;
}

.button-primary {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}

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

.price-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 2.6rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.microcopy {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.book-stage {
  position: relative;
  width: min(100%, 25rem);
  padding: 1.5rem 0 2.25rem 1.8rem;
}

.book-stage::before {
  content: "";
  position: absolute;
  inset: 8% 10% 0 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgb(17 17 15 / 6%) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper-deep);
}

.book-mockup {
  position: relative;
  z-index: 1;
  width: min(72vw, 18rem);
  margin: 0;
  background: var(--ink);
  box-shadow: var(--shadow);
  transform: perspective(1100px) rotateY(-9deg) rotateX(1deg);
  transform-origin: center;
}

.book-mockup::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10%;
  background: linear-gradient(90deg, rgb(0 0 0 / 62%), rgb(255 255 255 / 8%));
  pointer-events: none;
}

.book-mockup img {
  width: 100%;
}

.edition-note {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  max-width: 18rem;
  margin: -1.5rem 0 0 auto;
  padding: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgb(17 17 15 / 8%);
}

.edition-note span {
  color: var(--accent);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.edition-note p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.section {
  position: relative;
  display: grid;
  gap: 2rem;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  border-top: 1px solid var(--line);
}

.section-number {
  color: var(--accent);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1;
}

.section-copy {
  display: grid;
  gap: 1.1rem;
}

.section-copy p:not(.eyebrow),
.problem-section p:not(.eyebrow),
.shift-card p:not(.eyebrow),
.price-section p,
.final-cta p:not(.eyebrow) {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.6vw, 1.25rem);
}

.narrow {
  max-width: 58rem;
}

.problem-section {
  grid-template-columns: 1fr;
}

.shift-section {
  padding: clamp(3rem, 8vw, 6rem) 1rem;
  background: #201e1a;
  color: var(--white);
}

.shift-card {
  display: grid;
  gap: 1.2rem;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.shift-card h2 {
  max-width: 13ch;
}

.shift-card p:not(.eyebrow) {
  color: rgb(255 250 242 / 78%);
}

.method-section {
  grid-template-columns: 1fr;
}

.method-list {
  display: grid;
  gap: 0;
  list-style: none;
  counter-reset: method;
  border-top: 1px solid var(--line);
}

.method-list li {
  display: grid;
  gap: 0.45rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.method-list span {
  color: var(--accent);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.method-list p {
  color: var(--muted);
}

.includes-section {
  grid-template-columns: 1fr;
}

.included-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.included-grid article {
  display: grid;
  min-height: 13rem;
  align-content: space-between;
  gap: 1rem;
  padding: 1.15rem;
  background: var(--paper);
}

.included-grid span,
.comparison span {
  color: var(--accent);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.included-grid p {
  color: var(--muted);
}

.audience-wrap {
  display: grid;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  border-top: 1px solid var(--line);
}

.audience-panel {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.25rem, 4vw, 2rem) 0;
}

.audience-panel + .audience-panel {
  border-top: 1px solid var(--line);
}

.audience-panel ul {
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.audience-panel li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-soft);
}

.audience-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  border-radius: 999px;
}

.not-for li::before {
  background: transparent;
  border: 1px solid var(--muted);
}

.comparison {
  display: grid;
  gap: 1rem;
}

.comparison article {
  display: grid;
  gap: 1rem;
  min-height: 14rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  background: var(--paper);
}

.comparison article:last-child {
  background: var(--white);
  border-color: rgb(227 59 39 / 42%);
}

.comparison p {
  font-size: clamp(1.25rem, 3vw, 2.2rem);
  line-height: 1.12;
}

.comparison-note {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.price-section {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem);
  background: var(--white);
  border: 1px solid var(--line);
}

.price-section h2 {
  max-width: 14ch;
}

.faq-section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.faq-list {
  display: grid;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 1.05rem 0;
  color: var(--ink);
  font-weight: 750;
  list-style-position: outside;
}

details p {
  max-width: 48rem;
  padding: 0 0 1.2rem;
  color: var(--muted);
}

.final-cta {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto clamp(4rem, 8vw, 6rem);
  padding: clamp(3rem, 8vw, 6rem) 0 0;
  border-top: 1px solid var(--line);
}

.final-cta h2 {
  max-width: 15ch;
}

.site-footer {
  display: grid;
  gap: 0.35rem;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.checkout-page {
  min-height: 100vh;
}

.checkout-header {
  grid-template-columns: 1fr auto;
}

.checkout-main {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.checkout-hero {
  display: grid;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.checkout-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  min-width: 0;
}

.checkout-copy h1 {
  max-width: 10ch;
}

.checkout-copy p:not(.eyebrow) {
  max-width: 39rem;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.8vw, 1.28rem);
}

.checkout-summary {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  background: var(--white);
}

.checkout-cover {
  margin: 0;
  background: var(--ink);
  box-shadow: 0 18px 42px rgb(17 17 15 / 16%);
  transform: perspective(800px) rotateY(-7deg);
}

.checkout-cover img {
  width: 100%;
}

.checkout-summary h2 {
  max-width: 12ch;
  margin: 0.3rem 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  line-height: 1;
}

.checkout-summary p:not(.eyebrow) {
  max-width: 20rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.checkout-summary strong {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent);
  font-size: 1.35rem;
}

.checkout-layout {
  display: grid;
  gap: 1.5rem;
  padding: 0 0 clamp(4rem, 8vw, 6rem);
}

.checkout-steps {
  display: grid;
  gap: 1px;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.checkout-steps li {
  display: grid;
  gap: 0.55rem;
  min-height: 11rem;
  align-content: start;
  padding: 1.2rem;
  background: var(--paper);
}

.checkout-steps span {
  color: var(--accent);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.78rem;
}

.checkout-steps p {
  color: var(--muted);
}

.checkout-form {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--line);
  background: var(--white);
}

.checkout-status {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
}

.checkout-status[data-tone="success"] {
  border-color: rgb(31 131 84 / 34%);
  background: rgb(31 131 84 / 8%);
}

.checkout-status[data-tone="error"] {
  border-color: rgb(227 59 39 / 40%);
  background: rgb(227 59 39 / 8%);
}

.form-field {
  display: grid;
  gap: 0.55rem;
}

.form-field label {
  color: var(--ink);
  font-weight: 800;
}

.form-field input {
  width: 100%;
  min-height: 3.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0.85rem 0.95rem;
  font: inherit;
}

.form-field input:focus {
  border-color: var(--accent);
  outline: 3px solid rgb(227 59 39 / 18%);
}

.checkout-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.checkout-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.checkout-note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.download-main {
  display: grid;
  place-items: center;
  width: min(100% - 2rem, var(--max));
  min-height: calc(100vh - 9rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.download-panel {
  display: grid;
  gap: 1rem;
  width: min(100%, 44rem);
  padding: clamp(1.35rem, 5vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--white);
}

.download-panel h1 {
  max-width: 11ch;
}

.download-panel p:not(.eyebrow) {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.6vw, 1.2rem);
}

@media (min-width: 700px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .checkout-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: flex;
    justify-content: center;
    gap: 1.35rem;
  }

  .hero-actions {
    grid-template-columns: max-content max-content;
  }

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

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

  .price-section {
    grid-template-columns: 1fr auto;
  }

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

@media (max-width: 699px) {
  .checkout-main {
    width: calc(100% - 2rem);
    overflow: hidden;
  }

  .checkout-copy p:not(.eyebrow),
  .checkout-summary h2,
  .checkout-summary p,
  .checkout-steps p,
  .checkout-note {
    overflow-wrap: anywhere;
  }

  .checkout-summary {
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 1rem;
  }

  .checkout-summary h2 {
    max-width: 100%;
    font-size: clamp(1.3rem, 7vw, 1.8rem);
  }

  .checkout-cover {
    width: 5rem;
  }

  .checkout-steps li {
    min-height: auto;
  }

  .hero-grid {
    position: relative;
  }

  .hero-copy {
    padding-right: 5.75rem;
  }

  .hero-visual {
    position: absolute;
    right: 0;
    top: 1.2rem;
    place-items: start end;
    width: 5.5rem;
  }

  .book-stage {
    width: 5.5rem;
    padding: 0;
  }

  .book-stage::before,
  .edition-note {
    display: none;
  }

  .book-mockup {
    width: 5.25rem;
    transform: perspective(700px) rotateY(-10deg);
    box-shadow: 0 18px 46px rgb(17 17 15 / 20%);
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.78fr);
    align-items: center;
  }

  .checkout-hero {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.62fr);
    align-items: center;
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 0.55fr);
    align-items: start;
  }

  .problem-section {
    grid-template-columns: 0.36fr 1fr;
  }

  .method-section {
    grid-template-columns: 0.78fr 1fr;
  }

  .includes-section {
    grid-template-columns: 0.28fr 0.72fr;
  }

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

  .audience-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .audience-panel + .audience-panel {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
