/* Psychiatry Made Easy landing page */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-roman.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-next.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #131314;
  --night-deep: #0f0f10;
  --parchment: #ebe8e3;
  --parchment-soft: #c9c6c1;
  --ash: #9d9a95;
  --amber: #d9a46c;
  --amber-hi: #e6b886;
  --brass: #c4a16c;
  --slate: #8d9fb7;
  --line: rgb(var(--ink-rgb) / 0.13);
  --line-strong: rgb(var(--ink-rgb) / 0.24);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --radius: 18px;
  --breath: 10s;
  --calm: cubic-bezier(0.37, 0, 0.23, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

p {
  margin: 0 0 1.1em;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgb(var(--accent-rgb) / 0.35);
}

.lp-container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.lp-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
}

.lp-skip:focus {
  top: 12px;
}

.lp-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */

.lp-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.6s var(--calm), border-color 0.6s var(--calm);
}

.lp-header.is-solid {
  background: rgb(var(--bg-rgb) / 0.84);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.lp-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: min(100% - 2 * var(--gutter), var(--max));
  height: 76px;
  margin-inline: auto;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.lp-brand img {
  width: 36px;
  height: 36px;
}

.lp-brand__name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.lp-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.lp-nav a,
.lp-link {
  padding: 6px 0;
  color: var(--parchment-soft);
  font-size: 0.95rem;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.3s var(--calm), background-size 0.45s var(--calm);
}

.lp-nav a:hover,
.lp-link:hover {
  color: var(--parchment);
  background-size: 100% 1px;
}

.lp-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Menu button: shown on tablet and phone, where the nav links collapse */

.lp-menu {
  display: none;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: none;
  color: var(--parchment);
  cursor: pointer;
}

.lp-menu__close,
.lp-header.is-menu-open .lp-menu__open {
  display: none;
}

.lp-header.is-menu-open .lp-menu__close {
  display: block;
}

.lp-menu:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* Buttons and links */

.lp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--amber);
  color: var(--on-accent);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.35s var(--calm), border-color 0.35s var(--calm);
}

.lp-button:hover {
  background: var(--amber-hi);
}

.lp-button--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--parchment);
}

.lp-button--ghost:hover {
  background: rgb(var(--ink-rgb) / 0.06);
  border-color: rgb(var(--ink-rgb) / 0.42);
}

.lp-button--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.lp-text-link {
  padding-bottom: 2px;
  color: var(--amber-hi);
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color 0.3s var(--calm);
}

.lp-text-link:hover {
  color: var(--parchment);
}

/* Hero */

.lp-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.lp-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Soft amber glow behind the product screenshot */
.lp-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 62% at 72% 60%, rgb(var(--ink-rgb) / 0.07), rgb(var(--ink-rgb) / 0.03) 48%, transparent 74%),
    radial-gradient(34% 40% at 12% 8%, rgb(var(--ink-rgb) / 0.03), transparent 70%),
    linear-gradient(180deg, rgb(var(--ink-rgb) / 0.03), transparent 40%);
}

.lp-search {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 2 * var(--gutter)));
  z-index: 5;
}

.lp-search input {
  display: block;
  width: 100%;
  height: 60px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 28px rgba(0, 0, 0, 0.16);
  color: #fff;
  font: inherit;
  font-size: 1.125rem;
  text-align: center;
}

.lp-search input { padding-right: 68px; padding-left: 68px; }
.lp-search__submit { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.lp-search__submit:hover { background: rgba(255,255,255,.18); }
.lp-search__submit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lp-search input::placeholder { color: #fff; opacity: 1; }
.lp-search input:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

@media (max-width: 960px) {
  .lp-search {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2 * var(--gutter));
    max-width: 640px;
  }
}

.lp-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding-block: 204px clamp(56px, 8vh, 96px);
}

.lp-hero__shot {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--night-deep);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.4);
  animation: lp-fade 1.4s 0.8s var(--calm) both;
}

.lp-hero__shot img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}

.lp-hero__chrome {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgb(var(--ink-rgb) / 0.04);
}

.lp-hero__chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(var(--ink-rgb) / 0.2);
}

.lp-hero__title {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 3.3vw, 3.5rem);
  font-weight: 340;
  line-height: 1;
  letter-spacing: -0.022em;
  font-synthesis: none;
}

.lp-hero__title em,
.lp-h2 em {
  font-style: italic;
  font-weight: 400;
}

/* One orchestrated entrance: the headline comes into focus */
.lp-word {
  display: inline-block;
  animation: lp-focus 1.8s var(--calm) both;
}

.lp-word + .lp-word {
  display: block;
  animation-delay: 0.4s;
}

.lp-hero__lede {
  max-width: 35rem;
  margin-bottom: 36px;
  color: var(--parchment-soft);
  font-size: clamp(1.06rem, 1.4vw, 1.2rem);
  animation: lp-fade 1.4s 1s var(--calm) both;
}

.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: lp-fade 1.4s 1.25s var(--calm) both;
}

/* Shared section rhythm */

.lp-section {
  padding-block: clamp(96px, 13vw, 168px);
  scroll-margin-top: 40px;
}

/* Back-to-back sections share one gap */
.lp-section + .lp-section {
  padding-top: 0;
}

.lp-h2 {
  max-width: 17ch;
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-weight: 340;
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-wrap: balance;
  font-synthesis: none;
}

.lp-prose p {
  max-width: 36rem;
  color: var(--parchment-soft);
}

.lp-prose .lp-muted {
  color: var(--ash);
}

.lp-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}

.lp-split__intro {
  position: sticky;
  top: 120px;
}

/* Example monograph */

.lp-monograph {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(var(--ink-rgb) / 0.04), rgb(var(--ink-rgb) / 0.012));
}

.lp-monograph__tag,
.lp-monograph__label {
  margin-bottom: 16px;
  color: var(--ash);
  font-size: 0.9rem;
}

.lp-monograph__name {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 360;
  line-height: 1;
  letter-spacing: -0.015em;
}

.lp-monograph__class {
  margin: 0;
  color: var(--ash);
}

.lp-monograph__doses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 32px 0 36px;
  border-block: 1px solid var(--line);
}

.lp-monograph__doses div {
  padding: 18px 0;
}

.lp-monograph__doses div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.lp-monograph__doses dt {
  margin-bottom: 4px;
  color: var(--ash);
  font-size: 0.86rem;
}

.lp-monograph__doses dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
  font-variant-numeric: lining-nums;
}

.lp-toc {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 40px;
}

.lp-toc li {
  display: grid;
  grid-template-columns: 2em 1fr;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--parchment-soft);
  font-size: 0.97rem;
  line-height: 1.4;
  break-inside: avoid;
  counter-increment: toc;
}

.lp-toc li::before {
  content: counter(toc);
  color: var(--ash);
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
}

/* Cards (tools and plans) */

.lp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.lp-cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
}

.lp-card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(var(--ink-rgb) / 0.02);
}

.lp-card--featured {
  border-color: var(--line-strong);
  background: rgb(var(--ink-rgb) / 0.03);
}

.lp-card__title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 380;
  line-height: 1.1;
}

.lp-card__meta {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ash);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
}

.lp-card__text {
  color: var(--parchment-soft);
}

.lp-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: auto;
  padding-top: 8px;
}

.lp-checks {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.lp-checks li {
  position: relative;
  padding-left: 28px;
  color: var(--parchment-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.lp-checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--ash);
  border-bottom: 1.5px solid var(--ash);
  transform: rotate(-45deg);
}

/* Classes */

.lp-class-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.lp-class-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 0.5s var(--calm), background-color 0.5s var(--calm);
}

.lp-class-list a:hover {
  padding-left: 16px;
  background: rgb(var(--ink-rgb) / 0.03);
}

.lp-class-list__name {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 360;
  line-height: 1.2;
}

.lp-class-list__count {
  color: var(--ash);
  font-size: 0.95rem;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

/* Sources and updates strip */

.lp-trust {
  padding-block: clamp(32px, 4vw, 48px);
  border-block: 1px solid var(--line);
  background: var(--night-deep);
}

.lp-trust__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
}

.lp-trust__label {
  margin: 0 0 10px;
  color: var(--ash);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lp-trust__text {
  margin: 0 0 8px;
  color: var(--parchment-soft);
  font-size: 0.95rem;
}

.lp-trust__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-trust__list li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  align-items: baseline;
}

.lp-trust__list span {
  color: var(--parchment-soft);
  font-size: 0.88rem;
}

/* Quick answers */

.lp-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.lp-quick a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(var(--ink-rgb) / 0.02);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s var(--calm), background 0.3s var(--calm);
}

.lp-quick a:hover,
.lp-quick a:focus-visible {
  border-color: rgb(var(--brass-rgb) / 0.55);
  background: rgb(var(--accent-rgb) / 0.06);
}

.lp-quick__kind {
  color: var(--ash);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lp-quick__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 380;
  line-height: 1.15;
}

.lp-quick__hint {
  color: var(--parchment-soft);
  font-size: 0.92rem;
}

.lp-quick__more {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 28px;
}

/* Pause: a short breathing guide */

.lp-pause {
  padding-block: clamp(48px, 6vw, 72px);
  background: var(--night-deep);
}

.lp-pause__grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.lp-pause .lp-h2 {
  max-width: none;
}

.lp-breath {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 0;
}

.lp-breath__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(var(--brass-rgb) / 0.6);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--accent-rgb) / 0.26) 0%, rgb(var(--accent-rgb) / 0.09) 46%, transparent 70%);
  box-shadow: 0 0 70px rgb(var(--accent-rgb) / 0.16);
  transform: scale(0.66);
  animation: lp-breathe var(--breath) ease-in-out infinite;
}

.lp-breath__ring::after {
  content: "";
  position: absolute;
  inset: 20%;
  border: 1px solid rgba(141, 159, 183, 0.35);
  border-radius: 50%;
}

.lp-breath__cue {
  position: absolute;
  color: var(--parchment);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  text-align: center;
  opacity: 0;
}

.lp-breath__cue--in {
  animation: lp-cue-in var(--breath) linear infinite;
}

.lp-breath__cue--out {
  animation: lp-cue-out var(--breath) linear infinite;
}

.lp-breath__cue--still {
  display: none;
  max-width: 7em;
  font-size: 0.9rem;
  line-height: 1.3;
  opacity: 1;
}

.lp-motion-toggle {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: var(--parchment-soft);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.3s var(--calm), border-color 0.3s var(--calm);
}

.lp-motion-toggle:hover {
  border-color: rgb(var(--ink-rgb) / 0.42);
  color: var(--parchment);
}

/* About */

.lp-about .lp-prose {
  max-width: 760px;
}

/* FAQ */

.lp-faq__list {
  border-top: 1px solid var(--line);
}

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

.lp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 380;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

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

.lp-faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--ash);
  border-bottom: 1.5px solid var(--ash);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.45s var(--calm);
}

.lp-faq details[open] summary::after {
  transform: translateY(3px) rotate(225deg);
}

.lp-faq details p {
  max-width: 40rem;
  margin: 0;
  padding-bottom: 24px;
  color: var(--parchment-soft);
}

/* Footer */

.lp-footer {
  padding-block: 56px 64px;
  border-top: 1px solid var(--line);
  color: var(--ash);
  font-size: 0.93rem;
}

.lp-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
}

.lp-footer .lp-brand img {
  width: 32px;
  height: 32px;
}

.lp-footer__note {
  max-width: 34rem;
  margin: 18px 0 0;
}

.lp-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 10px 28px;
}

.lp-footer__nav a {
  color: var(--parchment-soft);
  text-decoration: none;
}

.lp-footer__nav a:hover {
  color: var(--parchment);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Motion */

@keyframes lp-focus {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(0.12em);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes lp-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* In for 4s (0-40%), out for 6s (40-100%) */
@keyframes lp-breathe {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.66);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lp-glow {
  0%,
  100% {
    opacity: 0.15;
  }
  40% {
    opacity: 0.85;
  }
}

@keyframes lp-cue-in {
  0%,
  2% {
    opacity: 0;
  }
  8%,
  34% {
    opacity: 1;
  }
  40%,
  100% {
    opacity: 0;
  }
}

@keyframes lp-cue-out {
  0%,
  40% {
    opacity: 0;
  }
  46%,
  92% {
    opacity: 1;
  }
  98%,
  100% {
    opacity: 0;
  }
}

/* Paused by the visitor: ambient loops stop, the guide becomes static */
.lp-motion-paused .lp-breath__ring {
  animation: none;
}

.lp-motion-paused .lp-breath__ring {
  opacity: 0.85;
  transform: scale(0.86);
}

.lp-motion-paused .lp-breath__cue--in,
.lp-motion-paused .lp-breath__cue--out {
  display: none;
}

.lp-motion-paused .lp-breath__cue--still {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .lp-breath__ring {
    opacity: 0.85;
    transform: scale(0.86);
  }

  .lp-breath__cue--in,
  .lp-breath__cue--out,
  .lp-motion-toggle {
    display: none;
  }

  .lp-breath__cue--still {
    display: block;
  }
}

/* Tablet */

@media (max-width: 960px) {
  .lp-menu {
    display: inline-grid;
  }

  .lp-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 4px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: var(--night);
  }

  .lp-header.is-menu-open .lp-nav {
    display: flex;
  }

  .lp-header.is-menu-open {
    background: var(--night);
  }

  .lp-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    background: none;
    font-size: 1.05rem;
  }

  .lp-nav a:last-child {
    border-bottom: 0;
  }

  .lp-header__actions {
    margin-left: auto;
  }

  .lp-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-hero {
    min-height: 0;
  }

  .lp-hero__content {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 180px 56px;
  }

  .lp-hero__shot {
    max-width: 720px;
  }

  .lp-split__intro {
    position: static;
  }

  .lp-cards {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
  }

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

  .lp-trust__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-footer__nav {
    justify-content: flex-start;
  }
}

/* Phone */

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .lp-header__inner {
    gap: 12px;
    height: 64px;
  }

  .lp-brand img {
    width: 32px;
    height: 32px;
  }

  .lp-brand__name {
    font-size: 1.12rem;
  }

  .lp-header__actions .lp-button {
    display: none;
  }

  .lp-hero__content {
    padding-block: 190px 56px;
  }

  .lp-search { top: 88px; }

  .lp-hero__actions .lp-button {
    flex: 1 1 100%;
  }

  .lp-monograph__doses {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-monograph__doses div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .lp-toc {
    columns: 1;
  }

  .lp-cards--two {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-quick {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-card {
    padding: 28px 24px 26px;
  }

  .lp-class-list a {
    padding-inline: 2px;
  }

  .lp-breath {
    width: 104px;
    height: 104px;
  }
}

/* Membership page */

.lp-sub {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
  padding-block: 160px 120px;
}

.lp-sub-page .lp-header__actions,
.lp-page .lp-header__actions {
  margin-left: auto;
}

/* Without this the logo is squeezed away when the header link is long */
.lp-page .lp-brand {
  flex-shrink: 0;
}

.lp-sub__card {
  max-width: 520px;
}

.lp-sub__mode {
  margin-bottom: 22px;
  padding: 10px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--ash);
  font-size: 0.9rem;
}

.lp-sub__state p {
  color: var(--parchment-soft);
}

.lp-sub__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-sub__fine {
  margin: 14px 0 0;
  font-size: 0.88rem;
}

.lp-sub__status {
  min-height: 1.5em;
  margin: 18px 0 0;
  color: var(--parchment-soft);
  font-size: 0.95rem;
}

.lp-sub__status.is-error {
  color: var(--error-text, #ef9f8c);
}

button.lp-button {
  font-family: inherit;
  cursor: pointer;
}

button.lp-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

@media (max-width: 960px) {
  .lp-sub {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 120px;
  }
}

/* Account page */

.lp-account {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
  padding-block: 160px 120px;
}

.lp-account__stack {
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.lp-account__loading {
  color: var(--ash);
}

.lp-account__text {
  color: var(--parchment-soft);
}

.lp-account__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-account__status {
  min-height: 1.5em;
  margin: 16px 0 0;
  color: var(--parchment-soft);
  font-size: 0.95rem;
}

.lp-account__status.is-error {
  color: var(--error-text, #ef9f8c);
}

.lp-account__badge {
  display: inline-block;
  margin: 0 0 22px;
  padding: 3px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ash);
  font-size: 0.85rem;
  font-weight: 700;
}

.lp-field {
  display: block;
  margin: 0 0 20px;
}

.lp-field__label {
  display: block;
  margin-bottom: 8px;
  color: var(--ash);
  font-size: 0.9rem;
}

.lp-field__input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgb(var(--ink-rgb) / 0.04);
  color: var(--parchment);
  font: inherit;
}

.lp-field__input:focus {
  border-color: var(--amber);
}

.lp-field__static {
  margin: 0;
  color: var(--parchment);
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  .lp-account {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 120px;
  }
}

/* Policy pages */

.lp-legal {
  padding-block: 160px 120px;
}

.lp-legal__doc {
  max-width: 44rem;
}

.lp-legal__intro {
  margin-bottom: 8px;
  color: var(--parchment-soft);
  font-size: 1.15rem;
}

.lp-legal__heading {
  margin: 2.4em 0 0.6em;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  font-weight: 380;
  line-height: 1.15;
}

.lp-legal p,
.lp-legal li {
  color: var(--parchment-soft);
}

.lp-legal ul {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

.lp-legal li {
  margin-bottom: 0.6em;
}

.lp-legal li strong {
  color: var(--parchment);
}

.lp-legal a {
  color: var(--amber-hi);
  text-underline-offset: 3px;
}

.lp-legal a:hover {
  color: var(--parchment);
}

/* Marks details the site owner still has to fill in */
.lp-fill {
  padding: 0 0.3em;
  border-radius: 4px;
  background: rgb(var(--accent-rgb) / 0.16);
  color: var(--amber-hi);
}

.lp-legal__details {
  margin: 32px 0;
  border-top: 1px solid var(--line);
}

.lp-legal__details div {
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.lp-legal__details dt {
  color: var(--ash);
  font-size: 0.92rem;
}

.lp-legal__details dd {
  margin: 0;
  color: var(--parchment);
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  .lp-legal {
    padding-top: 120px;
  }
}

@media (max-width: 640px) {
  .lp-legal__details div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}
