/* ============================================================
   SIMPLY PUT — plain-language story overlay
   A printed page opened over the site: paper ivory, charcoal ink,
   champagne accents. Calm motion, transform/opacity only.
   ============================================================ */

.sp {
  position: fixed;
  inset: 0;
  /* Same tier as the lead-magnet/cookie widgets (9999) but later in the
     DOM, so it renders above them; below the .cursor follower (10000). */
  z-index: 9999;
}

.sp__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.55);
  opacity: 0;
  animation: sp-fade 0.35s ease forwards;
}

.sp__dialog {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(760px, calc(100vw - 32px));
  height: fit-content;
  max-height: min(88vh, 900px);
  overflow-y: auto;
  background: #f4f1ea;
  color: #141414;
  border: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
  padding: clamp(28px, 5vw, 56px);
  opacity: 0;
  transform: translateY(14px);
  animation: sp-rise 0.45s cubic-bezier(0.22, 0.9, 0.3, 1) 0.05s forwards;
  outline: none;
}

@keyframes sp-fade {
  to {
    opacity: 1;
  }
}
@keyframes sp-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sp__close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: 1px solid rgba(20, 20, 20, 0.25);
  border-radius: 999px;
  color: #141414;
  font: 600 11px/1 "Raleway", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.sp__close:hover {
  border-color: #141414;
  background: rgba(20, 20, 20, 0.05);
}

.sp__eyebrow {
  color: #7a5c38;
  letter-spacing: 0.22em;
  margin: 0 0 14px;
}
.sp__example {
  color: #6b665e;
  letter-spacing: 0.1em;
  text-transform: none;
  font-style: italic;
}

/* ---------- chooser ---------- */

.sp__sentence {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  line-height: 1.12;
  margin: 0 0 26px;
  max-width: 22ch;
}
.sp__ask {
  font: 600 12px/1 "Raleway", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b665e;
  margin: 0 0 18px;
}

.sp__choices {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(20, 20, 20, 0.14);
}
.sp__choice {
  display: flex;
  align-items: baseline;
  gap: 18px;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.14);
  padding: 14px 6px;
  cursor: pointer;
  transition: background 0.2s, padding-left 0.25s;
}
@media (max-height: 820px) {
  .sp__choice {
    padding: 10px 6px;
  }
  .sp__sentence {
    font-size: clamp(1.35rem, 3.6vh, 2rem);
  }
}
.sp__choice:hover,
.sp__choice:focus-visible {
  background: rgba(216, 185, 140, 0.14);
  padding-left: 14px;
}
.sp__choice-num {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #a39e95;
}
.sp__choice-label {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  line-height: 1.2;
  color: #141414;
}

.sp__note {
  margin-top: 22px;
  font-size: 0.82rem;
  color: #6b665e;
  font-style: italic;
}

/* ---------- story ---------- */

.sp__story-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}
.sp__switch {
  background: none;
  border: 0;
  padding: 0;
  font: 600 11px/1 "Raleway", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a5c38;
  border-bottom: 1px solid rgba(122, 92, 56, 0.4);
  cursor: pointer;
}
.sp__switch:hover {
  color: #141414;
}

.sp__progress {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  flex-shrink: 0;
}
.sp__progress li {
  width: 18px;
  height: 2px;
  background: rgba(20, 20, 20, 0.18);
  transition: background 0.3s;
}
.sp__progress li.is-on {
  background: #d8b98c;
}

.sp__chapter {
  animation: sp-chapter 0.5s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
@keyframes sp-chapter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sp__verbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 18px 0 4px;
}
.sp__verb {
  font: 600 11px/1 "Raleway", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a39e95;
  opacity: 0;
  animation: sp-verb 0.5s ease forwards;
  animation-delay: calc(var(--i) * 0.55s);
}
@keyframes sp-verb {
  to {
    opacity: 1;
    color: #7a5c38;
  }
}

.sp-art {
  display: block;
  width: min(320px, 70%);
  height: auto;
  margin: 26px auto 10px;
  color: #4a463e;
}
.sp-art__accent {
  stroke: #b98a45;
}

.sp__line {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  line-height: 1.1;
  margin: 18px 0 14px;
}
.sp__body {
  font-size: 1.06rem;
  line-height: 1.65;
  color: #33302b;
  max-width: 56ch;
  margin: 0;
}

.sp__steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.sp__step {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
  opacity: 0;
  transform: translateY(8px);
  animation: sp-chapter 0.5s cubic-bezier(0.22, 0.9, 0.3, 1) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.55s);
}
.sp__step-verb {
  font: 600 11px/1.5 "Raleway", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a5c38;
  padding-top: 3px;
}
.sp__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #33302b;
}

.sp__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 26px;
}
.sp__share {
  margin-top: 18px;
}
.sp__quiet {
  background: none;
  border: 0;
  padding: 0;
  font: 600 12px/1 "Raleway", sans-serif;
  letter-spacing: 0.1em;
  color: #4a423a;
  border-bottom: 1px solid rgba(74, 66, 58, 0.4);
  cursor: pointer;
  text-decoration: none;
}
.sp__quiet:hover {
  color: #141414;
  border-color: #141414;
}

.sp__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(20, 20, 20, 0.12);
}
.sp__navbtn {
  background: none;
  border: 1px solid rgba(20, 20, 20, 0.3);
  border-radius: 999px;
  color: #141414;
  font: 600 11px/1 "Raleway", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.sp__navbtn:hover:not(:disabled) {
  border-color: #141414;
  background: rgba(20, 20, 20, 0.05);
}
.sp__navbtn:disabled {
  opacity: 0.35;
  cursor: default;
}
.sp__skip {
  background: none;
  border: 0;
  padding: 0;
  font: italic 400 0.95rem/1.4 "Cormorant Garamond", serif;
  color: #6b665e;
  border-bottom: 1px solid rgba(107, 102, 94, 0.4);
  cursor: pointer;
}
.sp__skip:hover {
  color: #141414;
}

/* ---------- header control ---------- */

.sp-trigger {
  background: none;
  border: 0;
  padding: 6px 10px;
  margin-right: 10px;
  font: 600 11px/1 "Raleway", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.85;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}
/* The header disables pointer events except for a/select/input. */
.sp-trigger {
  pointer-events: initial;
}
.sp-trigger:hover,
.sp-trigger:focus-visible {
  opacity: 1;
  border-bottom-color: currentColor;
}

/* ---------- quiet links in content ---------- */

.sp-link {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: 0;
  padding: 0 0 2px;
  font: italic 400 1rem/1.4 "Cormorant Garamond", serif;
  color: inherit;
  opacity: 0.8;
  border-bottom: 1px solid rgba(216, 185, 140, 0.55);
  cursor: pointer;
  text-decoration: none;
}
.sp-link:hover {
  opacity: 1;
  color: #d8b98c;
}

/* ---------- homepage band ---------- */

.simply-band {
  background: #f4f1ea;
  color: #141414;
  padding: clamp(70px, 10vw, 130px) 0;
}
.simply-band__sentence {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.15;
  max-width: 24ch;
  margin: 0 auto;
  text-align: center;
}
.simply-band__verbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  margin: 30px 0 44px;
}
.simply-band__verb {
  font: 600 11px/1 "Raleway", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a5c38;
}
.simply-band__ask {
  text-align: center;
  font: 600 11px/1 "Raleway", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b665e;
  margin-bottom: 0;
}
.simply-band__choices {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  border-top: 1px solid rgba(20, 20, 20, 0.14);
}
.simply-band__choices .sp__choice {
  padding: 16px 6px;
}
.simply-band__note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.82rem;
  font-style: italic;
  color: #6b665e;
}

/* ---------- /simply pages ---------- */

.simply-page {
  background: #f4f1ea;
  color: #141414;
  min-height: 100vh;
}
.simply-page__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) 24px 120px;
}
.simply-page__chapter {
  padding: 54px 0;
  border-top: 1px solid rgba(20, 20, 20, 0.14);
}
.simply-page__kicker {
  font: 600 11px/1 "Raleway", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a5c38;
  margin-bottom: 14px;
}
.simply-page__navrow {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  margin-top: 30px;
}

/* ---------- responsive ---------- */

@media (max-width: 767px) {
  .sp__dialog {
    width: 100vw;
    max-height: 100vh;
    height: 100%;
    border: 0;
    padding: 24px 20px 32px;
  }
  .sp__step {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .sp__nav {
    flex-wrap: wrap;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .sp__backdrop,
  .sp__dialog,
  .sp__chapter,
  .sp__verb,
  .sp__step {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .sp__verb {
    color: #7a5c38;
  }
  .sp__choice {
    transition: none;
  }
}
