:root {
  --ct-ink: #18181b;
  --ct-muted: #6b7280;
  --ct-line: #e6e7eb;
  --ct-panel: #fcfbf8;
  --ct-soft: #f5f4ef;
  --ct-good: #2f7d4c;
  --ct-bad: #b63f3f;
  --ct-gold: #cfa642;
  --ct-shadow: 0 24px 60px rgba(24, 24, 27, 0.08);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body.ct-site {
  background:
    radial-gradient(circle at top left, rgba(207, 166, 66, 0.10), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  color: var(--ct-ink);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

.background-image {
  display: none;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-nav,
.site-footer {
  background: rgba(255, 255, 255, 0.92);
}

.site-nav {
  border-bottom: 1px solid var(--ct-line);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--ct-line);
}

.site-nav-inner,
.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav-inner {
  justify-content: space-between;
}

.site-nav-links,
.site-footer-inner {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav-links {
  justify-content: flex-end;
}

.site-logo {
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  width: clamp(9rem, 16vw, 12rem);
  height: auto;
  display: block;
}

.site-nav a,
.site-footer a {
  color: var(--ct-ink);
  text-decoration: none;
  font-size: 0.96rem;
}

.site-nav-links a {
  font-weight: 600;
}

a {
  color: #3f4650;
  text-decoration-color: rgba(63, 70, 80, 0.28);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #000000;
  text-decoration-color: rgba(24, 24, 27, 0.55);
}

.site-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.7rem, 7vw, 5.25rem) 1.25rem 2.2rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ct-muted);
}

.stacked-title,
h1,
h2,
h3,
h4 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.02em;
  color: #111111;
}

.stacked-title {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 1.03;
  font-weight: 650;
}

.slogan {
  max-width: 42rem;
  margin: 1rem auto 0;
  color: var(--ct-muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.site-main {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  box-sizing: border-box;
}

.site-main > br {
  display: none;
}

.cothera-beta-banner {
  position: relative;
  isolation: isolate;
  width: min(100%, 900px);
  margin: 0 auto 1.5rem;
  padding: clamp(1.2rem, 3vw, 1.7rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.13);
  border-radius: 24px;
  background:
    linear-gradient(115deg, rgba(207, 166, 66, 0.13), rgba(255, 255, 255, 0.92) 48%),
    #ffffff;
  box-shadow: 0 18px 46px rgba(24, 24, 27, 0.09);
  box-sizing: border-box;
}

.cothera-beta-banner::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -3.5rem;
  right: 10%;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(207, 166, 66, 0.24);
  border-radius: 50%;
}

.cothera-beta-copy {
  min-width: 0;
}

.cothera-beta-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.45rem;
  padding: 0.26rem 0.58rem;
  border: 1px solid rgba(24, 24, 27, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #303238;
  font-size: 0.71rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.cothera-beta-banner h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.12;
}

.cothera-beta-banner p {
  max-width: 38rem;
  margin: 0.48rem 0 0;
  color: var(--ct-muted);
  line-height: 1.45;
}

.cothera-beta-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid #e5ad00;
  border-radius: 999px;
  background: #ffc107;
  color: #2b2111;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(255, 193, 7, 0.27);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cothera-beta-action:hover,
.cothera-beta-action:focus-visible {
  border-color: #eab700;
  background: #ffca2c;
  color: #2b2111;
  box-shadow: 0 14px 28px rgba(255, 193, 7, 0.32);
  transform: translateY(-1px);
}

section {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  padding: clamp(1.35rem, 3vw, 2.35rem);
  border: 1px solid var(--ct-line);
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, var(--ct-panel) 100%);
  color: var(--ct-ink);
  box-shadow: var(--ct-shadow);
  box-sizing: border-box;
}

section:first-child {
  border-top: 4px solid rgba(207, 166, 66, 0.55);
}

section h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

section h3,
section h4 {
  margin: 1.4rem 0 0.6rem;
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
}

section p {
  margin: 0 0 1rem;
}

section p:last-child,
section ul:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin: 0.38rem 0;
}

strong {
  color: #111111;
}

.authorship {
  margin: 0 0 1.4rem;
  color: var(--ct-muted);
  text-align: right;
  font-size: 0.92rem;
  line-height: 1.45;
}

.heading-with-icon {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.heading-with-icon img {
  width: 5rem;
  height: auto;
}

.diagram {
  overflow-x: auto;
  margin: 1.4rem 0 0;
}

.diagram table,
.cycle-table {
  width: 100%;
  margin: 1rem auto;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #ffffff;
  color: var(--ct-ink);
  border: 1px solid var(--ct-line);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(24, 24, 27, 0.05);
}

.diagram th,
.cycle-table th {
  background: var(--ct-soft);
  color: #111111;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 650;
  text-align: center;
  padding: 1rem;
  border-bottom: 1px solid var(--ct-line);
}

.diagram td,
.cycle-table td {
  padding: 1rem;
  text-align: center;
  vertical-align: top;
  border-right: 1px solid var(--ct-line);
}

.diagram td:last-child,
.cycle-table td:last-child {
  border-right: 0;
}

.misattunement-title {
  color: var(--ct-bad);
}

.repair-title {
  color: var(--ct-good);
}

.cycle-table td:has(.misattunement-title) {
  border: 1px solid rgba(182, 63, 63, 0.22);
  background: rgba(182, 63, 63, 0.025);
}

.cycle-table td:has(.repair-title) {
  border: 1px solid rgba(47, 125, 76, 0.25);
  background: rgba(47, 125, 76, 0.025);
}

.cycle-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.cycle-step span {
  width: fit-content;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(230, 231, 235, 0.9);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(24, 24, 27, 0.04);
}

.arrow {
  color: #a4a9b3;
  font-size: 1.1rem;
  line-height: 1;
}

.description {
  max-width: 80%;
  display: block;
  color: var(--ct-muted);
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.hanging-indent {
  padding-left: 1.5em;
  text-indent: -1.5em;
  margin-bottom: 1em;
}

#signup {
  padding: 1.25rem;
  border: 1px solid var(--ct-line);
  border-radius: 22px;
  background: #ffffff;
}

#signup form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

#signup label {
  flex-basis: 100%;
  color: #111111;
}

input[type="email"],
input[type="text"],
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d4d7de;
  border-radius: 16px;
  padding: 0.8rem 0.95rem;
  background: #ffffff;
  color: var(--ct-ink);
}

#signup input[type="email"] {
  width: min(100%, 18rem) !important;
  margin-right: 0 !important;
}

input[type="submit"],
button,
.button-link {
  display: inline-block;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  text-decoration: none;
  cursor: pointer;
}

input[type="submit"]:hover,
button:hover,
.button-link:hover {
  background: #2a2a2a;
  color: #ffffff;
}

.button-link.cothera-cta {
  border-color: #e5ad00;
  background: #ffc107;
  color: #2b2111;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(255, 193, 7, 0.24);
}

.button-link.cothera-cta:hover,
.button-link.cothera-cta:focus-visible {
  border-color: #eab700;
  background: #ffca2c;
  color: #2b2111;
}

.site-footer-inner {
  justify-content: center;
  color: var(--ct-muted);
}

.site-footer-inner p {
  margin: 0;
}

.site-footer a {
  color: var(--ct-ink);
}

@media (max-width: 767px) {
  .site-nav-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }

  .site-nav-links {
    justify-content: center;
  }

  .site-logo img {
    width: 9.5rem;
  }

  .site-hero {
    padding-top: 2.4rem;
  }

  .authorship {
    text-align: left;
  }

  .diagram table,
  .cycle-table {
    font-size: 0.95rem;
  }

  .cycle-table td {
    display: block;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--ct-line);
  }

  .cycle-table td:last-child {
    border-bottom: 0;
  }

  .cycle-table tr {
    display: block;
  }
}

@media (max-width: 560px) {
  .site-main {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .cothera-beta-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    border-radius: 22px;
  }

  .cothera-beta-action {
    width: 100%;
    box-sizing: border-box;
  }

  section {
    border-radius: 22px;
  }

  .description {
    max-width: 100%;
  }

  #signup form {
    align-items: stretch;
  }

  #signup input[type="email"],
  #signup input[type="submit"] {
    width: 100% !important;
  }
}
