/* Managing Former Coworkers — storefront landing page */

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-Italic.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Italic.ttf") format("truetype");
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #16233F;
  --navy-2: #22355C;
  --teal: #1F8A7E;
  --cover: #1C9A8C;
  --gold: #F2B53A;
  --teal-soft: #E3F1EE;
  --paper: #FCFBF8;
  --surface: #F3F0EA;
  --ink: #1F2328;
  --slate: #5A6573;
  --line: #DAD5CB;
  --amber: #D99A1E;
  --rose: #A9493B;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --narrow: 720px;
  --dock: 5.25rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 4.5rem;
  scroll-padding-bottom: calc(var(--dock) + 0.75rem);
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom, 0px));
}

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

a { color: inherit; }

button, summary { font: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
.wrap.narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 44px; padding: 0.55rem 0.95rem; font-size: 0.82rem; }
.btn--block { width: 100%; }
.btn--teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn--teal:hover { background: #18786d; border-color: #18786d; }
.btn--navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn--navy:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn--ghost {
  background: transparent;
  color: #E8EEEA;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}
.btn__short { display: none; }

/* ---------- Site bar ---------- */
.site-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(22, 35, 63, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-bar__brand {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: #F4F6F5;
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #F4F6F5;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 88% 18%, rgba(31, 138, 126, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(34, 53, 92, 0.9), transparent 55%),
    linear-gradient(165deg, #16233F 0%, #1a2a4a 48%, #132038 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 2.75rem;
  align-items: center;
}
.hero__brand {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
  line-height: 1.2;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.1vw, 2.7rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #F7F8F6;
  margin-bottom: 1rem;
  max-width: 16ch;
}
.hero__lede {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(232, 238, 234, 0.82);
  max-width: 38ch;
  margin-bottom: 1.5rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.hero__meta {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(232, 238, 234, 0.55);
}

/* ---------- Page fan ---------- */
.fan {
  margin: 0;
  width: 100%;
}
.fan__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.32 / 1;
}
.fan__page {
  --x: 0%;
  --r: 0deg;
  position: absolute;
  top: 8%;
  left: 0;
  width: 46%;
  height: auto;
  border-radius: 2px;
  background: #fff;
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.34),
    0 2px 6px rgba(0, 0, 0, 0.2);
  transform: translateX(var(--x)) rotate(var(--r));
  transform-origin: 50% 100%;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: fan-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.fan__page--back  { --x: 0%;    --r: -11deg; z-index: 1; animation-delay: 0.05s; }
.fan__page--p07   { --x: 40%;   --r: -4deg;  z-index: 2; animation-delay: 0.15s; }
.fan__page--p24   { --x: 80%;   --r: 3deg;   z-index: 3; animation-delay: 0.25s; }
.fan__page--front { --x: 117%;  --r: 9deg;   z-index: 4; top: 4%; animation-delay: 0.35s; }
@keyframes fan-in {
  from { opacity: 0; transform: translateX(58%) rotate(0deg); }
  to { opacity: 1; transform: translateX(var(--x)) rotate(var(--r)); }
}
@media (hover: hover) {
  .fan:hover .fan__page--back  { --x: -6%;  --r: -14deg; }
  .fan:hover .fan__page--p07   { --x: 37%;  --r: -5deg; }
  .fan:hover .fan__page--p24   { --x: 82%;  --r: 4deg; }
  .fan:hover .fan__page--front { --x: 124%; --r: 11deg; }
}
.fan__caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: rgba(232, 238, 234, 0.6);
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
  scroll-margin-top: 4.5rem;
}
.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.85rem;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.7rem;
}
.section__lede {
  color: var(--slate);
  max-width: 62ch;
  margin-bottom: 1.5rem;
}
.section.is-in { }

.section--problem { background: var(--paper); }
.stakes {
  margin-top: 1.35rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--teal);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--navy);
}
.pain-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.pain-list li {
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
}

.section--script { background: var(--surface); }
.sample {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  align-items: stretch;
}
.script {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem 1.6rem;
  margin: 0;
}
.script__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.85rem;
}
.script p:last-child {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--navy);
}
.hours {
  display: grid;
  gap: 0.75rem;
}
.hours__col {
  padding: 1.1rem 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
}
.hours__col h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.hours__col ul { list-style: none; }
.hours__col li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.4;
}
.hours__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
}
.hours__col--do { border-top: 3px solid var(--teal); }
.hours__col--do h3 { color: var(--teal); }
.hours__col--do li::before { background: var(--teal); }
.hours__col--avoid { border-top: 3px solid var(--rose); }
.hours__col--avoid h3 { color: var(--rose); }
.hours__col--avoid li::before { background: var(--rose); }

.center-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}
.center-cta__note {
  font-size: 0.92rem;
  color: var(--slate);
  max-width: 46ch;
}

.section--contrast { background: #fff; }
.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.contrast__col { padding: 1.6rem 1.5rem 1.75rem; }
.contrast__col--before {
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.contrast__col--after { background: var(--teal-soft); }
.contrast__col h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
  color: var(--navy);
}
.contrast__col ul { list-style: none; }
.contrast__col li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.65rem;
  line-height: 1.45;
}
.contrast__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--slate);
}
.contrast__col--after li::before { background: var(--teal); }

.section--inside { background: var(--paper); }
.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0.5rem 0 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof__stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--navy);
}
.proof__stat span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.chapters {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.chapters li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.chapters .n {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal);
  font-size: 0.85rem;
}
.chapters strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
}
.chapters li span span,
.chapters li div span {
  display: block;
  color: var(--slate);
  font-size: 0.95rem;
}
.inside-note {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--slate);
  max-width: 68ch;
}

.section--buy {
  background: var(--navy);
  color: #F4F6F5;
}
.section--buy h2,
.section--buy .eyebrow { color: #F4F6F5; }
.section--buy .eyebrow { color: var(--gold); }
.section--buy .section__lede { color: rgba(232, 238, 234, 0.78); }
.buy {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.buy__list {
  list-style: none;
  margin-bottom: 1.25rem;
}
.buy__list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}
.buy__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--teal);
}
.buy__fine,
.buy__secure {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(232, 238, 234, 0.55);
  max-width: 52ch;
}
.buy__panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.75rem 1.5rem 1.5rem;
}
.buy__product {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}
.buy__price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}
.buy__amount {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
}
.buy__once {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(232, 238, 234, 0.6);
}
.buy__secure { margin-top: 0.85rem; text-align: center; max-width: none; }

.section--faq { background: #fff; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0.9rem 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  flex: 0 0 auto;
  margin-right: 0.35rem;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 0.3rem; }
.faq details p {
  padding: 0 0 1.1rem;
  color: var(--slate);
  max-width: 62ch;
}

.footer {
  background: var(--navy);
  color: rgba(232, 238, 234, 0.75);
  padding: 1.75rem 0 1.5rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}
.footer a { color: rgba(232, 238, 234, 0.85); text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---------- Instant-access bar ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(22, 35, 63, 0.97);
  color: #F4F6F5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(0);
  transition: transform 0.25s ease;
}
.dock.is-hidden {
  transform: translateY(110%);
  pointer-events: none;
}
.dock__note {
  font-size: 0.92rem;
  color: rgba(244, 246, 245, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fan__page { animation: none; transition: none; }
  .btn:hover { transform: none; }
  .dock { transition: none; }
  .faq summary::after { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0 3rem;
  }
  .hero h1,
  .hero__lede { max-width: none; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }

  .hero__visual { max-width: 560px; margin: 0 auto; width: 100%; }

  .sample,
  .contrast,
  .buy { grid-template-columns: 1fr; }
  .contrast__col--before { border-right: none; border-bottom: 1px solid var(--line); }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 560px) {
  :root { --dock: 7.5rem; }
  .wrap, .wrap.narrow { width: min(100% - 1.5rem, var(--max)); }
  .site-bar { padding: 0.65rem 0.85rem; }
  .site-bar__brand { font-size: 0.92rem; }
  .site-bar .btn__long { display: none; }
  .site-bar .btn__short { display: inline; }
  .chapters li { grid-template-columns: 2.2rem 1fr; }
  .fan__stage { aspect-ratio: 1.18 / 1; }
  .fan__page { width: 41%; left: 5%; }
  .fan__page--back  { --x: 0%;   --r: -8deg; }
  .fan__page--p07   { --x: 40%;  --r: -3deg; }
  .fan__page--p24   { --x: 80%;  --r: 2deg; }
  .fan__page--front { --x: 118%; --r: 7deg; }
  .dock {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.55rem;
  }
  .dock .btn { width: 100%; }
  .script p:last-child { font-size: 1.08rem; }
}
