/* Pelvic floor reset guide — A4 booklet pages */

.ig-page {
  --cream: #efe8dc;
  --paper: #fffcf7;
  --ink: #1c2b22;
  --body: #3d4a43;
  --muted: #6b756f;
  --green: #2d4a35;
  --line: rgba(28, 43, 34, 0.16);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

body.ig-page {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.ig-book {
  --page: min(210mm, calc(100vw - 1.5rem));
  width: var(--page);
  margin: 0 auto;
  padding: 1.25rem 0 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(var(--page) * 297 / 210);
  padding: 1.15rem 1.25rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(28, 43, 34, 0.08);
  box-sizing: border-box;
  break-after: page;
  page-break-after: always;
}

.sheet--recipe {
  padding: 1rem 1.1rem 0.95rem;
  height: calc(var(--page) * 297 / 210);
  overflow: hidden;
}

.sheet--recipe .sheet__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sheet--recipe .ig-card {
  flex: 1;
  min-height: 0;
}

.sheet--recipe .ig-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.sheet--move {
  padding: 1rem 1.1rem 0.95rem;
  min-height: calc(var(--page) * 297 / 210);
}

.sheet--move .sheet__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
}

.sheet--move .ig-card {
  margin: 0;
}

.sheet--move .ig-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}

@media (min-width: 720px) {
  .sheet--move .sheet__body {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 1rem 1.1rem;
    align-items: center;
    flex: 1;
  }

  .sheet--move .ig-card {
    grid-column: 1;
    grid-row: 1;
  }

  .sheet--move .move__copy {
    grid-column: 2;
    grid-row: 1;
  }
}

.move__kicker {
  margin: 0 0 0.15rem;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sheet--move h2 {
  margin: 0 0 0.55rem;
}

.move__cue {
  margin: 0.65rem 0 0;
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.5;
}

.sheet--cover {
  padding: 0;
  overflow: hidden;
  margin-bottom: 2.25rem;
  min-height: 0;
}

.sheet--cover img {
  display: block;
  width: 100%;
  height: auto;
}

.sheet__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.sheet__brand {
  margin: 0;
  color: var(--green);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.sheet__tag {
  margin: 0;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sheet__body {
  flex: 1;
}

.sheet__foot {
  display: block;
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.sheet h2 {
  margin: 0 0 0.7rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.45rem, 4.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sheet h3 {
  margin: 1.15rem 0 0.35rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.2rem, 3.4vw, 1.4rem);
  font-weight: 600;
}

.sheet p {
  margin: 0 0 0.9rem;
}

.ig__lede {
  margin: 0 0 1.35rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.2rem, 3.4vw, 1.45rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
}

.ig__note {
  margin: 1.1rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--green);
  background: #eef3ee;
}

.ig__note strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ig-split {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
}

@media (min-width: 640px) {
  .ig-split {
    grid-template-columns: 1fr 1fr;
  }
}

.ig-box {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.ig-box h3 {
  margin-top: 0;
}

.ig-box ul,
.sheet__body > ul {
  margin: 0;
  padding-left: 1.1rem;
}

.ig-box li,
.sheet__body > ul li {
  margin: 0 0 0.45rem;
}

.sheet--chapter .sheet__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0.4rem 1.5rem;
}

.sheet--chapter h2,
.sheet--chapter .sheet__sell,
.sheet--chapter ul {
  text-align: center;
}

.sheet--chapter ul {
  margin-left: auto;
  margin-right: auto;
  max-width: 34rem;
  text-align: left;
}

.sheet__sell {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.2rem, 3.6vw, 1.5rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
}

.sheet__meal {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.85rem, 5.5vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ig-card {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.ig-card img {
  display: block;
  width: 100%;
  height: auto;
}

.ig-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  text-align: center;
}

.ig-cta h2 {
  margin: 0 0 0.85rem;
}

.ig-cta p {
  margin: 0 auto 1.35rem;
  max-width: 34rem;
}

a.ig-app {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ig-cta a {
  display: inline-block;
  align-self: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--green);
  color: #f7f4ee;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.ig__legal {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  body.ig-page {
    background: #fff;
  }

  .ig-book {
    width: 210mm;
    padding: 0;
    gap: 0;
  }

  .sheet {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    box-shadow: none;
  }

  .sheet--cover {
    margin: 0;
  }
}
