/* Content pages (about, guide, facts, press, mentorship, methodology, legal, 404).
 *
 * Built on the Akis tokens in akis.css, which every page loads first. Dark
 * only, like the app and the home page.
 */

:root {
  color-scheme: dark;

  --pg-measure: 720px;
  --pg-wide: 1180px;
  --pg-accent: var(--ak-plan-text);
  --pg-mark: var(--ak-plan-v);
  --pg-glow-a: rgba(242, 56, 110, 0.24);
  --pg-glow-b: rgba(255, 122, 69, 0.08);
}

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

body.ak {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ak main {
  flex: 1 0 auto;
}

.ak img {
  max-width: 100%;
  height: auto;
}

.pg-top {
  position: relative;
  z-index: 2;
}

.pg-top__in {
  max-width: var(--pg-wide);
  margin: 0 auto;
  padding: 10px var(--ak-gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

.ak .pg-brand,
.ak .pg-brand:hover {
  margin-right: auto;
  min-height: var(--ak-min-tap);
  display: inline-flex;
  align-items: center;
  font-family: var(--ak-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ak-text);
  text-decoration: none;
}

.pg-nav {
  order: 5;
  flex: 1 1 100%;
  display: flex;
  gap: 2px;
  margin: 0 -10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ak .pg-nav a {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--ak-r-pill);
  color: var(--ak-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms var(--ak-ease), background-color 160ms var(--ak-ease);
}

.ak .pg-nav a:hover {
  color: var(--ak-text);
}

.ak .pg-nav a[aria-current="page"] {
  color: var(--ak-text);
  background: var(--ak-tile2);
}

.ak .pg-lang,
.ak .pg-lang:hover {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ak-line2);
  border-radius: var(--ak-r-pill);
  font-family: var(--ak-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ak-muted);
  text-decoration: none;
}

.ak .pg-lang:hover {
  color: var(--ak-text);
}

.pg-cta.ak-btn {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
}

@media (min-width: 820px) {
  .pg-top__in {
    min-height: 80px;
    padding: 0 32px;
    flex-wrap: nowrap;
    gap: 16px;
  }

  .pg-nav {
    order: 0;
    flex: 0 1 auto;
    margin: 0 8px 0 0;
    overflow: visible;
  }

  .pg-cta.ak-btn {
    padding: 0 18px;
  }
}

.pg-hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: 56px var(--ak-gutter) 24px;
}

.pg-hero[data-src="coach"] {
  --pg-accent: var(--ak-coach-hero-dim);
  --pg-mark: var(--ak-coach-v);
  --pg-glow-a: rgba(58, 123, 255, 0.28);
  --pg-glow-b: rgba(116, 70, 232, 0.1);
}

.pg-hero[data-src="me"] {
  --pg-accent: var(--ak-muted);
  --pg-mark: var(--ak-me-v);
  --pg-glow-a: rgba(169, 155, 181, 0.16);
  --pg-glow-b: rgba(58, 123, 255, 0.05);
}

.pg-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -220px;
  width: min(980px, 170vw);
  height: 640px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--pg-glow-a), var(--pg-glow-b) 55%, transparent);
  pointer-events: none;
  animation: pg-halo 9s ease-in-out infinite;
}

@keyframes pg-halo {
  0%,
  100% {
    opacity: 0.75;
    transform: translateX(-50%) scale(0.96);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.03);
  }
}

.pg-hero__in {
  max-width: var(--pg-measure);
  margin: 0 auto;
}

.pg-kicker {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pg-kicker .ak-eyebrow {
  color: var(--pg-accent);
}

.pg-mark {
  position: relative;
  width: 12px;
  height: 24px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 247, 240, 0.3);
  border-radius: var(--ak-r-pill);
  background: var(--ak-tile);
  overflow: hidden;
}

.pg-mark::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 62%;
  background: var(--pg-mark);
}

.pg-hero h1 {
  margin: 0;
  font-size: clamp(36px, 4.2vw + 18px, 64px);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.pg-hero h1.pg-title--long {
  font-size: clamp(32px, 2.6vw + 20px, 50px);
  line-height: 1.06;
}

.pg-lead {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ak-muted);
  text-wrap: pretty;
}

.pg-lead strong {
  color: var(--ak-text);
  font-weight: 600;
}

.pg-meta {
  margin: 18px 0 0;
  font-family: var(--ak-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ak-muted);
}

@media (min-width: 820px) {
  .pg-hero {
    padding: 88px 32px 32px;
  }

  .pg-lead {
    font-size: 19px;
  }
}

.pg-prose {
  max-width: calc(var(--pg-measure) + 2 * var(--ak-gutter));
  margin: 0 auto;
  padding: 0 var(--ak-gutter) 96px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ak-muted);
}

.pg-sec {
  padding-top: 44px;
}

.pg-sec + .pg-sec {
  margin-top: 28px;
  border-top: 1px solid var(--ak-line);
}

.pg-prose h2 {
  margin: 0 0 16px;
  font-family: var(--ak-display);
  font-weight: 700;
  font-size: clamp(26px, 1.6vw + 18px, 34px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ak-text);
  text-wrap: balance;
  scroll-margin-top: 24px;
}

.pg-prose h3 {
  margin: 28px 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ak-text);
}

.pg-prose p {
  margin: 0 0 16px;
  text-wrap: pretty;
}

.pg-prose strong {
  color: var(--ak-text);
  font-weight: 600;
}

.pg-prose em {
  color: var(--ak-text);
}

.pg-prose a {
  text-decoration: underline;
  text-decoration-color: rgba(156, 198, 255, 0.4);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.pg-prose a:hover {
  text-decoration-color: currentColor;
}

.pg-answer {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ak-text);
}

/* Only classless lists get the row treatment; component lists carry a class. */
.pg-prose :is(ul, ol):not([class]) {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--ak-line);
  border-radius: var(--ak-r-list);
  background: var(--ak-tile);
  overflow: hidden;
}

.pg-prose :is(ul, ol):not([class]) > li {
  position: relative;
  padding: 14px 18px 14px 40px;
  font-size: 16px;
  line-height: 1.6;
}

.pg-prose :is(ul, ol):not([class]) > li + li {
  border-top: 1px solid var(--ak-line);
}

.pg-prose ul:not([class]) > li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 21px;
  width: 7px;
  height: 14px;
  border-radius: var(--ak-r-pill);
  background: var(--pg-list, var(--ak-plan-v));
}

.pg-hero[data-src="coach"] ~ .pg-prose {
  --pg-list: var(--ak-coach-v);
  --pg-num: var(--ak-coach-text);
}

.pg-hero[data-src="me"] ~ .pg-prose {
  --pg-list: var(--ak-me-v);
  --pg-num: var(--ak-muted);
}

.pg-prose ol:not([class]) {
  counter-reset: pg-step;
}

.pg-prose ol:not([class]) > li {
  padding-left: 56px;
  counter-increment: pg-step;
}

.pg-prose ol:not([class]) > li::before {
  content: counter(pg-step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: var(--ak-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--pg-num, var(--ak-plan-text));
}

.pg-table {
  margin: 4px 0 20px;
  border: 1px solid var(--ak-line);
  border-radius: var(--ak-r-card);
  background: var(--ak-tile);
  overflow-x: auto;
}

.pg-table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.pg-table--fit table {
  min-width: 0;
}

.pg-table th,
.pg-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.pg-table th {
  font-family: var(--ak-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ak-muted);
  background: var(--ak-tile2);
}

.pg-table td {
  border-top: 1px solid var(--ak-line);
}

.pg-table td:first-child {
  color: var(--ak-text);
  font-weight: 600;
}

.pg-table .pg-hl {
  color: var(--ak-text);
  background: rgba(255, 122, 69, 0.08);
}

.pg-table th.pg-hl {
  color: var(--ak-plan-text);
}

.pg-toc {
  margin: 8px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--ak-line);
  border-radius: var(--ak-r-card);
  background: var(--ak-sheet);
}

.pg-toc .ak-eyebrow {
  margin: 0 0 8px;
}

.pg-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0 20px;
}

.pg-toc a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 640px) {
  .pg-toc__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pg-faq {
  border: 1px solid var(--ak-line);
  border-radius: var(--ak-r-list);
  background: var(--ak-tile);
  overflow: hidden;
}

.pg-faq details + details {
  border-top: 1px solid var(--ak-line);
}

.pg-faq summary {
  position: relative;
  min-height: 56px;
  padding: 16px 52px 16px 18px;
  display: flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ak-text);
}

.pg-faq summary::-webkit-details-marker {
  display: none;
}

.pg-faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  display: grid;
  place-items: center;
  border-radius: var(--ak-r-pill);
  background: var(--ak-tile3);
  font-family: var(--ak-mono);
  font-size: 14px;
  color: var(--ak-muted);
  transition: transform 200ms var(--ak-ease);
}

.pg-faq details[open] summary::after {
  transform: rotate(45deg);
}

.pg-faq summary:focus-visible {
  outline-offset: -2px;
}

.pg-faq details > p {
  margin: 0;
  padding: 0 18px 18px;
  font-size: 16px;
}

.pg-links {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ak .pg-links a,
.ak .pg-links a:hover {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ak-line2);
  border-radius: var(--ak-r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--ak-text);
  text-decoration: none;
  transition: background-color 160ms var(--ak-ease);
}

.ak .pg-links a:hover {
  background: var(--ak-tile2);
}

.pg-end {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 56px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  border: 1px solid var(--ak-line);
  border-radius: var(--ak-r-sheet);
  background: var(--ak-sheet);
}

.pg-end::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% -20% auto;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 56, 110, 0.22), rgba(58, 123, 255, 0.08) 60%, transparent);
}

.pg-prose .pg-end p {
  margin: 0;
}

.pg-prose .pg-end .pg-end__t {
  font-size: clamp(28px, 2vw + 18px, 38px);
  color: var(--ak-text);
}

.pg-hero .pg-links {
  margin-top: 28px;
}

.ak .pg-end .ak-btn {
  text-decoration: none;
}

.pg-steps {
  margin: 8px 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.pg-steps > li {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--ak-line);
  border-radius: var(--ak-r-card);
  background: var(--ak-sheet);
}

.pg-steps__n {
  font-family: var(--ak-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ak-coach-text);
}

.pg-prose .pg-steps h3 {
  margin: 0;
  font-family: var(--ak-display);
  font-size: 22px;
  line-height: 1.15;
}

.pg-prose .pg-steps p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .pg-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pg-pills {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pg-pills > li {
  padding: 4px 12px;
  border: 1px solid var(--ak-line);
  border-radius: var(--ak-r-pill);
  background: var(--ak-tile);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ak-text);
}

.pg-week {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.pg-week > li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--ak-mono);
  font-size: 10.5px;
  color: var(--ak-dim);
}

.pg-week > li::before {
  content: "";
  width: 100%;
  height: 32px;
  border: 1px solid var(--ak-line);
  border-radius: 10px;
}

.pg-week > li.is-mentor::before {
  border-color: transparent;
  background: var(--ak-coach-v);
}

.pg-note {
  margin: 12px 0 20px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(255, 181, 71, 0.4);
  border-radius: var(--ak-r-list);
  background: rgba(255, 181, 71, 0.06);
}

.pg-note .ak-eyebrow {
  color: var(--ak-warn);
}

.pg-prose .pg-note p {
  margin: 0;
}

.pg-prose .pg-note p:not(.ak-eyebrow) {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ak-warn-ink);
}

.pg-foot {
  border-top: 1px solid var(--ak-line);
  background: var(--ak-sheet);
}

.pg-foot__in {
  max-width: var(--pg-wide);
  margin: 0 auto;
  padding: 40px var(--ak-gutter) 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
}

.pg-foot__brand {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.ak .pg-foot__mark,
.ak .pg-foot__mark:hover {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--ak-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--ak-text);
  text-decoration: none;
}

.pg-foot__brand p {
  margin: 0;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ak-muted);
}

.pg-foot__mono {
  font-family: var(--ak-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ak-dim);
}

.pg-foot__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pg-foot__col .ak-eyebrow {
  margin: 0 0 4px;
}

.ak .pg-foot__col a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--ak-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ak .pg-foot__col a:hover {
  color: var(--ak-text);
}

.pg-foot__contact {
  grid-column: 1 / -1;
}

.pg-foot__base {
  grid-column: 1 / -1;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--ak-line);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ak-dim);
}

.pg-foot__base p {
  margin: 0;
  max-width: 820px;
}

@media (min-width: 960px) {
  .pg-foot__in {
    padding: 56px 32px 32px;
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
    gap: 32px;
  }

  .pg-foot__brand,
  .pg-foot__contact {
    grid-column: auto;
  }

  .pg-foot__base {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
  }

  .pg-foot__base .pg-foot__mono {
    flex-shrink: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-glow {
    animation: none;
  }

  .ak .pg-nav a,
  .ak .pg-links a,
  .pg-faq summary::after {
    transition: none;
  }
}

/* Patch on the 404 page: surprised, and as lost as the reader. */
.pg-patch {
  margin: 20px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pg-patch img {
  width: 96px;
  height: 96px;
  flex: none;
}

.pg-patch figcaption {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ak-muted);
}
