/* =========================================================
   TXT-ERS COMPANION
   PART 1 OF 4
   Foundation, header, banner, and current message card
   ========================================================= */

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
  --companion-purple-dark: #33247f;
  --companion-purple: #5f49cf;
  --companion-purple-light: #7b63df;

  --companion-orange: #ff941f;
  --companion-green: #44a679;

  --companion-ink: #171b3b;
  --companion-muted: #5c6077;

  --companion-line: #e9e7f0;
  --companion-surface: #ffffff;
  --companion-page-background: #fbfaff;

  --companion-shadow:
    0 10px 28px rgba(48, 38, 99, 0.07);

  --companion-shadow-hover:
    0 14px 32px rgba(48, 38, 99, 0.11);

  --companion-radius-large: 22px;
  --companion-radius-medium: 20px;
  --companion-radius-small: 16px;

  --companion-motion-duration: 220ms;
  --companion-motion-easing: ease-out;
}


/* =========================================================
   2. GLOBAL RESET AND PAGE FOUNDATION
   ========================================================= */

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

html {
  min-height: 100%;
}

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

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.companion-page {
  min-height: 100vh;
  margin: 0;

  position: relative;
  overflow-x: hidden;

  color: var(--companion-ink);

  background:
    radial-gradient(
      circle at 0% 10%,
      rgba(161, 188, 164, 0.38) 0%,
      rgba(161, 188, 164, 0.18) 18%,
      rgba(161, 188, 164, 0) 42%
    ),

    radial-gradient(
      circle at 56% 4%,
      rgba(190, 176, 225, 0.26) 0%,
      rgba(190, 176, 225, 0.12) 24%,
      rgba(190, 176, 225, 0) 48%
    ),

    radial-gradient(
      circle at 100% 16%,
      rgba(226, 211, 190, 0.34) 0%,
      rgba(226, 211, 190, 0.15) 22%,
      rgba(226, 211, 190, 0) 46%
    ),

    radial-gradient(
      circle at 94% 88%,
      rgba(244, 218, 180, 0.40) 0%,
      rgba(244, 218, 180, 0.17) 22%,
      rgba(244, 218, 180, 0) 48%
    ),

    radial-gradient(
      circle at 10% 92%,
      rgba(184, 204, 184, 0.24) 0%,
      rgba(184, 204, 184, 0.10) 24%,
      rgba(184, 204, 184, 0) 48%
    ),

    #fcfbf8;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    Arial,
    sans-serif;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =========================================================
   3. SHARED PAGE WIDTH
   ========================================================= */

.companion-header-inner,
.companion-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.companion-shell {
  position: relative;
  z-index: 2;

  padding: 10px 0 96px;
}


/* =========================================================
   4. HEADER
   ========================================================= */
.companion-header {
  position: relative;
  z-index: 3;
}

.companion-header-inner {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
}


/* Brand */

.companion-brand {
  display: inline-flex;
  align-items: center;

  gap: 12px;

  color: inherit;
  text-decoration: none;
}

.companion-brand-mark {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  color: #ffffff;

  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      #6c54d8 0%,
      #9a5ac0 45%,
      #f18a62 100%
    );

  box-shadow:
    0 8px 19px rgba(91, 65, 190, 0.19);
}

.companion-brand-text {
  min-width: 0;
}

.companion-brand-text strong,
.companion-brand-text small {
  display: block;
}

.companion-brand-text strong {
  color: var(--companion-ink);

  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.015em;
}

.companion-brand-text small {
  margin-top: 5px;

  color: #565a70;

  font-size: 0.82rem;
  line-height: 1.2;
}


/* Header support link */

.companion-support-link {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  color: #4f39cb;

  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1;

  text-decoration: none;

  transition:
    color var(--companion-motion-duration)
      var(--companion-motion-easing),
    transform var(--companion-motion-duration)
      var(--companion-motion-easing);
}

.companion-support-link:hover {
  color: var(--companion-purple-dark);
  transform: translateY(-1px);
}

.header-support-icon {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  border: 2px solid currentColor;
  border-radius: 50%;
}


/* =========================================================
   5. MESSAGE BANNER
   ========================================================= */

.message-banner {
  position: relative;

  min-height: 146px;

  padding: 26px 34px;

  display: flex;
  align-items: center;

  overflow: hidden;

  color: #ffffff;

  border-radius: var(--companion-radius-large);

  background:
    linear-gradient(
      108deg,
      #34247f 0%,
      #4c37b0 45%,
      #765ddb 100%
    );

  box-shadow:
    0 13px 30px rgba(61, 46, 145, 0.15);
}


/* Banner copy */

.banner-copy {
  position: relative;
  z-index: 3;

  max-width: 720px;
}

.banner-week {
  color: #ebe7ff;

  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1;

  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.message-banner h1 {
  margin: 8px 0 0;

  color: #ffffff;

  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.04em;
}

.message-banner p {
  margin: 10px 0 0;

  color: #eeeaff;

  font-size: 0.86rem;
  line-height: 1.45;
}


/* Decorative banner art */

.banner-art {
  position: absolute;
  inset: 0 0 0 auto;

  width: 44%;

  pointer-events: none;
}

.banner-circle {
  position: absolute;

  top: 24px;
  right: 150px;

  width: 112px;
  height: 112px;

  border-radius: 50%;

  background:
    rgba(174, 147, 241, 0.43);
}

.banner-arch {
  position: absolute;

  right: 88px;
  bottom: 0;

  width: 112px;
  height: 118px;

  border-radius: 64px 64px 0 0;

  background:
    linear-gradient(
      180deg,
      #ffa968 0%,
      #ff9164 100%
    );
}

.banner-spark {
  position: absolute;

  color: rgba(232, 225, 255, 0.92);
}

.banner-spark-one {
  top: 26px;
  right: 256px;

  font-size: 1.4rem;
}

.banner-spark-two {
  top: 18px;
  right: 115px;

  font-size: 1rem;
}


/* Banner progress */

.message-progress {
  position: absolute;

  right: 28px;
  bottom: 24px;

  z-index: 4;

  display: flex;
  align-items: center;

  gap: 10px;
}

.reflection-progress-dot {
  width: 11px;
  height: 11px;

  flex: 0 0 auto;

  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;

  background: transparent;
}

.reflection-progress-dot.current {
  background: #ffffff;
}


/* =========================================================
   6. CURRENT MESSAGE CARD
   ========================================================= */

.current-message-card {
  position: relative;

  min-height: 154px;

  margin-top: 14px;
  padding: 24px 30px;

  display: grid;

  grid-template-columns:
    52px
    minmax(0, 1fr)
    140px;

  gap: 22px;

  align-items: center;

  border: 1px solid var(--companion-line);
  border-radius: var(--companion-radius-large);

  background: var(--companion-surface);

  box-shadow: var(--companion-shadow);
}


/* Shared circular icon behavior */

.message-card-icon,
.core-icon {
  display: grid;
  place-items: center;

  border-radius: 50%;
}


/* Message icon */

.message-card-icon {
  width: 48px;
  height: 48px;

  align-self: start;

  background:
    linear-gradient(
      145deg,
      #5841ca,
      #765de0
    );

  box-shadow:
    0 7px 16px rgba(91, 67, 197, 0.18);
}

.message-card-icon img {
  width: 29px;
  height: 29px;

  object-fit: contain;

  filter: brightness(0) invert(1);
}


/* Message text */

.message-card-heading {
  margin: 0;

  color: #5e4ac9;

  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;

  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.current-message-card blockquote {
  max-width: 760px;

  margin: 12px 0 0;

  color: var(--companion-ink);

  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: -0.012em;
}

.message-instructions {
  max-width: 760px;

  margin: 14px 0 0;

  color: #575b70;

  font-size: 0.82rem;
  line-height: 1.58;
}


/* Protection illustration */

.message-protection-icon {
  width: 116px;
  height: 116px;

  display: grid;
  place-items: center;

  justify-self: center;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(225, 217, 255, 0.92) 0%,
      rgba(240, 235, 255, 0.68) 50%,
      rgba(250, 248, 255, 0) 75%
    );
}

.message-protection-icon img {
  width: 66px;
  height: 66px;

  object-fit: contain;

  filter:
    invert(32%)
    sepia(55%)
    saturate(2123%)
    hue-rotate(231deg)
    brightness(88%)
    contrast(91%);
}


/* =========================================================
   7. ACCESSIBLE FOCUS STATES
   ========================================================= */

.companion-brand:focus-visible,
.companion-support-link:focus-visible {
  outline: 3px solid rgba(95, 73, 207, 0.34);
  outline-offset: 3px;
}


/* =========================================================
   8. RESPONSIVE RULES FOR PART 1
   ========================================================= */

@media (max-width: 820px) {
  .current-message-card {
    grid-template-columns:
      48px
      minmax(0, 1fr)
      112px;

    gap: 18px;
  }

  .message-protection-icon {
    width: 104px;
    height: 104px;
  }

  .message-protection-icon img {
    width: 60px;
    height: 60px;
  }
}


@media (max-width: 600px) {
  .companion-header-inner,
  .companion-shell {
    width: calc(100% - 24px);
  }

  .companion-header-inner {
    min-height: 68px;
  }

  .companion-shell {
    padding-bottom: 72px;
  }

  .companion-brand-mark {
    width: 40px;
    height: 40px;

    border-radius: 13px;
  }

  .companion-brand-text strong {
    font-size: 1rem;
  }

  .companion-brand-text small {
    font-size: 0.75rem;
  }

  .companion-support-link {
    font-size: 0.78rem;
  }

  .header-support-icon {
    width: 30px;
    height: 30px;
  }

  .message-banner {
    min-height: 158px;

    padding: 24px 22px;
  }

  .message-banner h1 {
    max-width: 78%;

    font-size: 2rem;
    line-height: 1.05;
  }

  .message-banner p {
    max-width: 72%;
  }

  .banner-circle {
    right: 54px;

    width: 80px;
    height: 80px;
  }

  .banner-arch {
    right: 15px;

    width: 80px;
    height: 100px;
  }

  .banner-spark-one {
    right: 132px;
  }

  .banner-spark-two {
    display: none;
  }

  .message-progress {
    right: 20px;
    bottom: 18px;
  }

  .current-message-card {
    grid-template-columns:
      42px
      minmax(0, 1fr);

    gap: 15px;

    padding: 20px;
  }

  .message-card-icon {
    width: 40px;
    height: 40px;
  }

  .message-card-icon img {
    width: 25px;
    height: 25px;
  }

  .message-protection-icon {
    display: none;
  }

  .current-message-card blockquote {
    font-size: 1rem;
    line-height: 1.5;
  }
}


/* =========================================================
   9. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .companion-support-link {
    transition: none;
  }

  .companion-support-link:hover {
    transform: none;
  }
} 

/* =========================================================
   TXT-ERS COMPANION
   PART 2 OF 4
   Core cards and resource card system
   ========================================================= */


/* =========================================================
   10. CORE CARD GRID
   ========================================================= */

.core-card-grid {
  margin-top: 14px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 14px;
}


/* =========================================================
   11. CORE CARDS
   ========================================================= */

.core-card {
  position: relative;

  min-height: 184px;

  padding: 22px;

  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);

  gap: 15px;

  overflow: hidden;

  border: 1px solid var(--companion-line);
  border-radius: var(--companion-radius-medium);

  background: var(--companion-surface);

  box-shadow: var(--companion-shadow);
}

.core-card::after {
  position: absolute;

  right: -20px;
  bottom: -24px;

  width: 100px;
  height: 76px;

  content: "";

  border-radius: 80px 0 0 0;
}

.why-core-card::after {
  background:
    linear-gradient(
      145deg,
      rgba(221, 212, 255, 0.92),
      rgba(239, 235, 255, 0.65)
    );
}

.think-core-card::after {
  background:
    linear-gradient(
      145deg,
      rgba(255, 221, 168, 0.94),
      rgba(255, 239, 211, 0.65)
    );
}

.try-core-card::after {
  background:
    linear-gradient(
      145deg,
      rgba(198, 234, 217, 0.95),
      rgba(228, 247, 238, 0.68)
    );
}

.core-card > * {
  position: relative;
  z-index: 1;
}

.core-card-content-block {
  min-width: 0;
}


/* Core icons */

.core-icon {
  width: 44px;
  height: 44px;

  flex: 0 0 auto;

  box-shadow:
    0 6px 14px rgba(35, 30, 78, 0.1);
}

.core-icon img {
  width: 24px;
  height: 24px;

  object-fit: contain;

  filter: brightness(0) invert(1);
}

.purple-core-icon {
  background:
    linear-gradient(
      145deg,
      #5d42ce,
      #795ee1
    );
}

.orange-core-icon {
  background:
    linear-gradient(
      145deg,
      #ff9300,
      #ffad16
    );
}

.green-core-icon {
  background:
    linear-gradient(
      145deg,
      #3ba071,
      #60bc8f
    );
}


/* Core card headings */

.core-card h2 {
  margin: 6px 0 0;

  font-size: 1.02rem;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.why-core-card h2 {
  color: #5940cc;
}

.think-core-card h2 {
  color: #f08b00;
}

.try-core-card h2 {
  color: #3fa175;
}


/* Core card body text */

.core-card p {
  margin: 12px 0 0;

  color: #45495d;

  font-size: 0.91rem;
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: 0;
}


/* =========================================================
   12. EXPLORE SECTION
   ========================================================= */

.explore-section {
  margin-top: 28px;
  padding: 0;

  border: 0;
  border-radius: 0;

  background: transparent;

  box-shadow: none;
}

.explore-heading {
  margin-bottom: 16px;

  display: flex;
  align-items: center;

  gap: 24px;
}

.explore-heading h2 {
  margin: 0;

  color: #5941ce;

  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1;

  text-transform: uppercase;
  letter-spacing: 0.115em;
}

.explore-heading p {
  margin: 0;

  color: #62667b;

  font-size: 0.73rem;
  line-height: 1.45;
}


/* =========================================================
/* =========================================================
   13. RESOURCE CARDS V2
   Compact cards with retained thumbnails
   ========================================================= */

.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 18px;

  align-items: stretch;
}


/* Individual card */

.reflection-resource-card {
  box-sizing: border-box;

  min-width: 0;
  min-height: 0 !important;

  width: 100%;
  height: 220px !important;
  max-height: 220px;

  margin: 0;
  padding: 0;

  display: grid;
  grid-template-rows:
    128px
    92px;

  overflow: hidden;

  color: inherit;
  text-decoration: none;

  border: 1px solid #e4e1eb;
  border-radius: 10px;

  background: #ffffff;

  box-shadow:
    0 4px 12px rgba(38, 29, 91, 0.07);

  transition:
    transform 180ms ease-out,
    border-color 180ms ease-out,
    box-shadow 180ms ease-out;
}

.reflection-resource-card:hover,
.reflection-resource-card:focus-within {
  transform: translateY(-2px);

  border-color: #d5cfeb;

  box-shadow:
    0 10px 22px rgba(38, 29, 91, 0.11);
}


/* Thumbnail */

.resource-thumbnail {
  position: relative;

  width: 100%;
  height: 128px;
  min-height: 128px;
  max-height: 128px;

  margin: 0;
  padding: 0;

  overflow: hidden;

  background: #eceaf5;
}

.resource-thumbnail > img:first-child {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0;

  object-fit: cover;
object-position: center top;
  border: 0;
  border-radius: 0;

  transition:
    transform 180ms ease-out;
}

.reflection-resource-card:hover
  .resource-thumbnail > img:first-child,
.reflection-resource-card:focus-within
  .resource-thumbnail > img:first-child {
  transform: scale(1.02);
}

.resource-thumbnail::after {
  display: none;
}

.resource-thumbnail-icon {
  display: none;
}


/* Thumbnail fallback */

.resource-thumbnail-placeholder {
  background:
    linear-gradient(
      145deg,
      #eee9ff 0%,
      #dceff1 100%
    );
}


/* Duration pill */

.resource-duration {
  position: absolute;

  left: 10px;
  bottom: 8px;

  z-index: 3;

  padding: 4px 7px;

  color: #171b3b;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.96);

  box-shadow:
    0 3px 9px rgba(20, 18, 45, 0.12);

  font-size: 0.52rem;
  font-weight: 850;
  line-height: 1;

  text-transform: uppercase;
  letter-spacing: 0.025em;
}


/* White content area */

.resource-card-content {
  position: relative;

  box-sizing: border-box;

  min-width: 0;
  min-height: 0;

  width: 100%;
  height: 92px;
  max-height: 92px;

  margin: 0;

  padding:
    8px
    38px
    8px
    14px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  overflow: hidden;
}


/* Resource type and icon */

.resource-type-badge {
  width: fit-content;
  min-height: 15px;

  margin: 0;
  padding: 0;

  display: inline-flex;
  align-items: center;

  gap: 6px;

  color: #5036c8;

  border: 0;
  border-radius: 0;

  background: transparent !important;

  font-size: 0.56rem;
  font-weight: 850;
  line-height: 1;

  text-transform: uppercase;
  letter-spacing: 0.055em;

  white-space: nowrap;
}

.resource-type-icon {
  width: 15px;
  height: 15px;

  flex: 0 0 15px;

  display: block;

  object-fit: contain;

  filter: none;
}

.resource-type-text {
  display: inline-block;

  line-height: 1;
}


/* Title */

.reflection-resource-card h3 {
  margin: 4px 0 0;
  padding: 0;

  color: #171b3b;

  font-size: 0.78rem;
  font-weight: 730;
  line-height: 1.18;

  letter-spacing: -0.008em;
  word-spacing: normal;

  display: -webkit-box;
  overflow: hidden;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  overflow-wrap:anywhere;
}


/* Source */

.resource-source {
  margin: 5px 0 0;
  padding: 0;

  max-width: 100%;

  color: #73778d;

  font-size: 0.62rem;
  line-height: 1.15;

  letter-spacing: 0;
  word-spacing: normal;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Hide long descriptions */

.resource-description {
  display: none;
}


/* Chevron */

.resource-action {
  position: absolute;

  right: 12px;
  top: 50%;

  width: 20px;
  height: 30px;

  margin: 0;
  padding: 0;

  display: grid;
  place-items: center;

  transform: translateY(-50%);

  color: #3d22b8;

  font-size: 0;
  line-height: 1;
}

.resource-action::after {
  content: "›";

  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
}


/* Opened state */

.reflection-resource-card.is-opened {
  border-color: #cbc3eb;

  box-shadow:
    0 9px 22px rgba(72, 54, 155, 0.09);
}

.reflection-resource-card.is-opened
  .resource-action::before {
  content: "✓";

  font-size: 0.86rem;
  font-weight: 850;
}

.reflection-resource-card.is-opened
  .resource-action::after {
  display: none;
}


/* Focus */

.reflection-resource-card:focus-visible {
  outline: 3px solid rgba(95, 73, 207, 0.34);
  outline-offset: 3px;
}


/* Tablet */

@media (max-width: 820px) {
  .resource-card-grid {
    display: flex;

    gap: 16px;

    overflow-x: auto;

    padding:
      2px
      2px
      10px;

    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
  }

  .reflection-resource-card {
    flex: 0 0 min(82vw, 370px);

    min-height: 0 !important;
    height: 220px !important;
    max-height: 220px;

    scroll-snap-align: start;
  }
}


/* Phone */

@media (max-width: 600px) {
  .reflection-resource-card {
    flex-basis: min(88vw, 350px);
  }

  .resource-card-content {
    padding:
      8px
      38px
      8px
      14px;
  }
}


/* =========================================================
   20. REDUCED MOTION FOR PART 2
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .reflection-resource-card,
  .resource-thumbnail > img:first-child {
    transition: none;
  }

  .reflection-resource-card:hover,
  .reflection-resource-card:focus-within {
    transform: none;
  }

  .reflection-resource-card:hover
    .resource-thumbnail > img:first-child,
  .reflection-resource-card:focus-within
    .resource-thumbnail > img:first-child {
    transform: none;
  }
}

/* =========================================================
   TXT-ERS COMPANION
   PART 3 OF 4
   Support, notes, practice interactions, takeaway, and errors
   ========================================================= */


/* =========================================================
   21. SUPPORT CARD
   ========================================================= */

.companion-support-card {
  min-height: 98px;

  margin-top: 28px;
  padding: 16px 22px;

  display: grid;

  grid-template-columns:
    76px
    minmax(0, 1fr)
    minmax(0, 1fr)
    52px;

  gap: 22px;

  align-items: center;

  border: 1px solid #ebe7ff;
  border-radius: var(--companion-radius-medium);

  background:
    linear-gradient(
      100deg,
      #f4efff 0%,
      #faf7ff 48%,
      #fffaff 100%
    );

  box-shadow: var(--companion-shadow);
}


/* Support illustration */

.support-heart {
  width: 72px;
  height: 72px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      #ebe5ff 0%,
      #f7f4ff 75%
    );
}

.support-heart img {
  width: 54px;
  height: 54px;

  object-fit: contain;

  filter:
    invert(32%)
    sepia(55%)
    saturate(2123%)
    hue-rotate(231deg)
    brightness(88%)
    contrast(91%);
}


/* Support copy */

.support-copy,
.support-secondary {
  min-width: 0;
}

.support-copy strong,
.support-secondary strong {
  display: block;

  color: #302389;

  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.3;
}

.support-copy p,
.support-secondary p {
  margin: 5px 0 0;

  color: #44485f;

  font-size: 0.78rem;
  line-height: 1.5;
}

.support-secondary {
  padding-left: 28px;

  border-left: 1px solid #dcd6ef;
}


/* Support arrow */

.support-arrow {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  justify-self: end;

  color: #ffffff;

  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      #6047d1,
      #765de0
    );

  box-shadow:
    0 8px 19px rgba(89, 65, 190, 0.2);

  font-size: 1.45rem;
  line-height: 1;

  text-decoration: none;

  transition:
    transform var(--companion-motion-duration)
      var(--companion-motion-easing),
    box-shadow var(--companion-motion-duration)
      var(--companion-motion-easing);
}

.support-arrow:hover {
  transform: translateX(2px);

  box-shadow:
    0 10px 22px rgba(89, 65, 190, 0.25);
}


/* =========================================================
   22. PRIVATE NOTES
   ========================================================= */

.private-notes {
  margin-top: 18px;
  padding-top: 16px;

  border-top: 1px solid #eee9df;
}

.private-notes label {
  display: block;

  color: #b86c00;

  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
}

.private-notes label span {
  color: #73768a;

  font-weight: 600;
}

.private-notes textarea {
  width: 100%;
  min-height: 92px;

  margin-top: 9px;
  padding: 11px 12px;

  resize: vertical;

  color: var(--companion-ink);

  border: 1px solid #ded9e8;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.84);

  font: inherit;
  font-size: 0.84rem;
  line-height: 1.5;

  outline: none;

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.private-notes textarea::placeholder {
  color: #8b8d9e;
}

.private-notes textarea:hover {
  border-color: #cbc4d9;
}

.private-notes textarea:focus {
  border-color: #ef9a1a;

  background: #ffffff;

  box-shadow:
    0 0 0 3px rgba(255, 148, 31, 0.14);
}

.private-notes-help {
  margin: 7px 0 0 !important;

  color: #6a6e81 !important;

  font-size: 0.68rem !important;
  line-height: 1.45 !important;
}


/* =========================================================
   23. PRACTICE COMPLETION
   ========================================================= */

.practice-complete-button {
  width: 100%;

  margin-top: 18px;
  padding: 11px 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  color: #317f5c;

  border: 1px solid #b9dfcc;
  border-radius: 12px;

  background: #f4fbf7;

  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;

  cursor: pointer;

  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease;
}

.practice-complete-button:hover {
  transform: translateY(-1px);

  border-color: #80c3a2;

  background: #eef9f3;

  box-shadow:
    0 7px 16px rgba(52, 134, 96, 0.1);
}

.practice-complete-button:active {
  transform: translateY(0);
}

.practice-complete-button.is-complete {
  color: #ffffff;

  border-color: #3c986d;

  background:
    linear-gradient(
      145deg,
      #3e9b70,
      #55b285
    );
}

.practice-complete-button.is-complete:hover {
  border-color: #35865f;

  background:
    linear-gradient(
      145deg,
      #398e67,
      #4ea87c
    );
}

.practice-complete-status {
  min-height: 1em;

  margin: 7px 0 0 !important;

  color: #317f5c !important;

  font-size: 0.68rem !important;
  line-height: 1.4 !important;

  text-align: center;
}


/* =========================================================
   24. TODAY'S TAKEAWAY
   ========================================================= */

.takeaway-card {
  min-height: 106px;

  margin-top: 28px;
  padding: 20px 24px;

  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);

  gap: 16px;

  align-items: center;

  border: 1px solid #e3ddf7;
  border-radius: var(--companion-radius-medium);

  background:
    linear-gradient(
      110deg,
      rgba(242, 237, 255, 0.96) 0%,
      rgba(250, 248, 255, 0.98) 100%
    );

  box-shadow: var(--companion-shadow);
}

.takeaway-icon {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  color: #ffffff;

  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      #5d43ce,
      #7a60df
    );

  box-shadow:
    0 7px 16px rgba(91, 67, 197, 0.18);

  font-size: 1.25rem;
  line-height: 1;
}

.takeaway-content {
  min-width: 0;
}

.takeaway-label {
  margin: 0;

  color: #5941ce;

  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1;

  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.takeaway-text {
  margin: 7px 0 0;

  color: #34384d;

  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.55;
}


/* =========================================================
   25. ERROR STATE
   ========================================================= */

.companion-error {
  padding-top: 60px;
}

.error-card {
  padding: 36px;

  border: 1px solid var(--companion-line);
  border-radius: var(--companion-radius-large);

  background: #ffffff;

  box-shadow: var(--companion-shadow);
}

.error-eyebrow {
  margin: 0;

  color: #5e4ac9;

  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;

  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.error-card h1 {
  margin: 12px 0 0;

  color: var(--companion-ink);

  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.error-card > p:not(.error-eyebrow) {
  margin: 12px 0 0;

  color: var(--companion-muted);

  line-height: 1.6;
}


/* =========================================================
   26. GENERIC INTERACTION CONTAINERS
   ========================================================= */

#private-notes-container,
#practice-interaction-container,
#resource-completion-container,
#takeaway-container {
  min-width: 0;
}

#private-notes-container:empty,
#practice-interaction-container:empty,
#resource-completion-container:empty,
#takeaway-container:empty {
  display: none;
}


/* =========================================================
   27. SHARED BUTTON AND LINK FOCUS STATES
   ========================================================= */

.support-arrow:focus-visible,
.practice-complete-button:focus-visible,
.private-notes textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(95, 73, 207, 0.34);
  outline-offset: 3px;
}

.practice-complete-button:focus-visible {
  outline-color: rgba(68, 166, 121, 0.3);
}


/* =========================================================
   28. RESPONSIVE RULES FOR PART 3
   ========================================================= */

@media (max-width: 820px) {
  .companion-support-card {
    grid-template-columns:
      68px
      minmax(0, 1fr)
      48px;

    gap: 18px;
  }

  .support-secondary {
    display: none;
  }
}


@media (max-width: 600px) {
  .companion-support-card {
    grid-template-columns:
      62px
      minmax(0, 1fr)
      46px;

    gap: 14px;

    padding: 16px;
  }

  .support-heart {
    width: 60px;
    height: 60px;
  }

  .support-heart img {
    width: 46px;
    height: 46px;
  }

  .support-arrow {
    width: 44px;
    height: 44px;
  }

  .private-notes textarea {
    min-height: 86px;
  }

  .takeaway-card {
    padding: 18px;

    grid-template-columns:
      42px
      minmax(0, 1fr);

    gap: 13px;
  }

  .takeaway-icon {
    width: 42px;
    height: 42px;
  }

  .takeaway-text {
    font-size: 0.87rem;
  }

  .error-card {
    padding: 26px 22px;
  }
}


/* =========================================================
   29. REDUCED MOTION FOR PART 3
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .support-arrow,
  .practice-complete-button,
  .private-notes textarea {
    transition: none;
  }

  .support-arrow:hover,
  .practice-complete-button:hover {
    transform: none;
  }
}

/* =========================================================
   TXT-ERS COMPANION
   PART 4A
   Utility classes, accessibility, animations
   ========================================================= */


/* =========================================================
   30. SPACING HELPERS
   ========================================================= */

.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-16 { margin-bottom: 16px !important; }

.text-center {
    text-align:center;
}

.text-right {
    text-align:right;
}

.full-width {
    width:100%;
}

.hidden {
    display:none !important;
}


/* =========================================================
   31. FLEX HELPERS
   ========================================================= */

.flex {
    display:flex;
}

.flex-column {
    display:flex;
    flex-direction:column;
}

.flex-center {
    display:flex;
    align-items:center;
    justify-content:center;
}

.space-between {
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.align-center {
    align-items:center;
}


/* =========================================================
   32. VISUALLY HIDDEN
   ========================================================= */

.visually-hidden {
    position:absolute !important;

    width:1px;
    height:1px;

    padding:0;
    margin:-1px;

    overflow:hidden;

    clip:rect(0 0 0 0);
    clip-path:inset(50%);

    border:0;

    white-space:nowrap;
}


/* =========================================================
   33. DIVIDER
   ========================================================= */

.section-divider {

    width:100%;
    height:1px;

    margin:32px 0;

    background:var(--companion-line);

}


/* =========================================================
   34. CARD ANIMATIONS
   ========================================================= */

.current-message-card,
.core-card,
.explore-section,
.takeaway-card,
.companion-support-card,
.error-card {

    transition:

        box-shadow
            var(--companion-motion-duration)
            var(--companion-motion-easing),

        transform
            var(--companion-motion-duration)
            var(--companion-motion-easing);

}

.current-message-card:hover,
.core-card:hover,
.takeaway-card:hover,
.companion-support-card:hover {

    box-shadow:var(--companion-shadow-hover);

}


/* =========================================================
   35. IMAGE DEFAULTS
   ========================================================= */

img {

    display:block;

    max-width:100%;
    height:auto;

}


/* =========================================================
   36. LINK DEFAULTS
   ========================================================= */

a {

    color:inherit;

}

a:hover {

    text-decoration:none;

}


/* =========================================================
   37. BUTTON DEFAULTS
   ========================================================= */

button {

    appearance:none;

    border:none;

    background:none;

}


/* =========================================================
   38. FORM ELEMENTS
   ========================================================= */

textarea,
input,
select {

    font-family:inherit;

}

textarea {

    resize:vertical;

}


/* =========================================================
   39. SELECTION COLOR
   ========================================================= */

::selection {

    color:#fff;

    background:#5f49cf;

}

::-moz-selection {

    color:#fff;

    background:#5f49cf;

}

/* =========================================================
   TXT-ERS COMPANION
   PART 4B
   Final responsive rules and print styles
   ========================================================= */


/* =========================================================
   40. LARGE SCREENS
   ========================================================= */

@media (min-width:1400px){

    .companion-shell,
    .companion-header-inner{

        width:min(1280px,calc(100% - 48px));

    }

}


/* =========================================================
   41. TABLET
   ========================================================= */

@media (max-width:900px){

    .message-banner{

        padding:24px;

    }

    .banner-art{

        width:38%;

    }

}


/* =========================================================
   42. SMALL TABLET
   ========================================================= */

@media (max-width:700px){

    .message-banner h1{

        font-size:1.9rem;

    }

    .message-banner p{

        max-width:85%;

    }

}


/* =========================================================
   43. PHONE
   ========================================================= */

@media (max-width:480px){

    .message-banner{

        min-height:150px;

    }

    .message-banner h1{

        max-width:100%;

        font-size:1.75rem;

    }

    .banner-art{

        opacity:.55;

    }

    .message-progress{

        bottom:14px;

        right:16px;

    }

    .current-message-card{

        padding:18px;

    }

    .core-card{

        padding:18px;

    }

    .explore-section{

        padding:0px;

    }

    .resource-card-content{

        padding:14px;

    }

    .takeaway-card{

        padding:16px;

    }

}


/* =========================================================
   44. PRINT
   ========================================================= */

@media print{

    body{

        background:#fff !important;

    }

    .message-banner{

        color:#000;

        background:#fff;

        box-shadow:none;

        border:1px solid #ccc;

    }

    .banner-art,
    .message-progress,
    .support-arrow{

        display:none !important;

    }

    .current-message-card,
    .core-card,
    .explore-section,
    .reflection-resource-card,
    .takeaway-card,
    .companion-support-card{

        break-inside:avoid;

        box-shadow:none;

    }

}


/* =========================================================
   45. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion:reduce){

    *{

        animation:none !important;

        transition:none !important;

        scroll-behavior:auto !important;

    }

}

/* =========================================================
   46. ATMOSPHERIC CONTOUR BACKGROUND
   Sage, lavender, and warm beige
   ========================================================= */

.companion-page::before {
  content: "";

  position: fixed;
  inset: 0;

  z-index: 0;

  pointer-events: none;

  opacity: 0.20;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='960' height='960' viewBox='0 0 960 960'%3E%3Cg fill='none' stroke='%238F87B4' stroke-width='1.15' stroke-linecap='round'%3E%3Cpath d='M-90 155 C70 18 223 44 306 149 C394 261 523 258 624 151 C727 42 853 40 1041 189'/%3E%3Cpath d='M-75 184 C65 66 203 72 282 170 C366 274 507 285 611 180 C718 72 854 72 1029 210'/%3E%3Cpath d='M-62 213 C66 110 183 102 261 191 C342 284 487 311 598 211 C712 108 852 103 1015 232'/%3E%3Cpath d='M-102 560 C61 423 209 448 302 552 C397 659 523 660 629 553 C737 444 866 448 1044 586'/%3E%3Cpath d='M-86 590 C61 472 196 476 282 574 C371 676 507 690 616 584 C726 477 861 478 1031 610'/%3E%3Cpath d='M-67 621 C64 520 180 510 260 598 C343 689 489 716 601 616 C714 516 854 509 1015 637'/%3E%3C/g%3E%3C/svg%3E");

  background-size: 960px 960px;
  background-position: center top;
  background-repeat: repeat;

  mix-blend-mode: multiply;
}

@media (max-width: 600px) {
  .companion-page::before {
    opacity: 0.14;
    background-size: 760px 760px;
  }
}

/* =========================================================
   MOBILE COMPANION LAYOUT OVERRIDES
   ========================================================= */

@media (max-width: 600px) {  
  /* Page width and spacing */
  .companion-header-inner,
  .companion-shell {
    width: calc(100% - 24px);
  }

  .companion-shell {
    padding-top: 4px;
    padding-bottom: 56px;
  }


  /* Banner */
  .message-banner {
    min-height: 170px;
    padding: 24px 22px;
    border-radius: 20px;
  }

  .message-banner h1 {
    max-width: 78%;
    font-size: 2rem;
    line-height: 1.08;
  }

  .message-banner p {
    max-width: 74%;
    font-size: 0.88rem;
  }


  /* Main TXT-ERS message card */
  .current-message-card {
    grid-template-columns:
      42px
      minmax(0, 1fr);

    gap: 15px;

    min-height: auto;
    padding: 20px;

    align-items: start;
  }

  .message-protection-icon {
    display: none;
  }

  .current-message-card blockquote {
    margin-top: 10px;

    font-size: 1.02rem;
    line-height: 1.48;
  }

  .message-instructions {
    margin-top: 12px;

    font-size: 0.78rem;
    line-height: 1.5;
  }


      /* Stack the three middle cards vertically */
  .core-card-grid {
    margin-top: 14px;

    display: grid;
    grid-template-columns: 1fr;

    gap: 14px;
  }

  .core-card {
    min-width: 0;
    min-height: auto;

    padding: 18px;

    grid-template-columns:
      46px
      minmax(0, 1fr);

    gap: 14px;

    border-radius: 18px;
  }

  .core-card-content-block {
    min-width: 0;
  }

  .core-card h2 {
    margin-top: 4px;

    font-size: 1rem;
  }

  .core-card p {
    margin-top: 8px;

    font-size: 0.88rem;
    line-height: 1.55;
  }

  .core-card::after {
    right: -24px;
    bottom: -30px;

    width: 112px;
    height: 82px;
  }

  #private-notes-container,
  #practice-interaction-container {
    min-width: 0;
  }

  /* Explore heading */
  .explore-section {
    margin-top: 24px;
  }

  .explore-heading {
    margin-bottom: 14px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
  }

  .explore-heading h2 {
    flex: 0 0 auto;

    font-size: 0.72rem;
  }

  .explore-heading p {
    flex: 1;

    text-align: right;

    font-size: 0.68rem;
  }


  /* Horizontal resource-card carousel */
  .resource-card-grid {
    display: flex;

    gap: 14px;

    overflow-x: auto;
    overflow-y: hidden;

    padding:
      2px
      12px
      12px
      2px;

    scroll-snap-type: x mandatory;
    scroll-padding-left: 2px;

    overscroll-behavior-inline: contain;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  .resource-card-grid::-webkit-scrollbar {
    display: none;
  }

  .reflection-resource-card {
    flex:
      0
      0
      min(76vw, 290px);

    width: min(76vw, 290px);

    height: 250px !important;
    max-height: 250px;

    grid-template-rows:
      150px
      100px;

    scroll-snap-align: start;

    border-radius: 16px;
  }

  .resource-thumbnail {
    height: 150px;
    min-height: 150px;
    max-height: 150px;
  }

  .resource-thumbnail > img:first-child {
    object-position: center top;
  }

  .resource-card-content {
    height: 100px;
    max-height: 100px;

    padding:
      10px
      38px
      10px
      14px;
  }

  .reflection-resource-card h3 {
    margin-top: 5px;

    font-size: 0.8rem;
    line-height: 1.22;
  }

  .resource-source {
    margin-top: 6px;

    font-size: 0.66rem;
  }


  /* Support card */
  .companion-support-card {
    margin-top: 22px;

    grid-template-columns:
      58px
      minmax(0, 1fr)
      44px;

    gap: 13px;

    padding: 16px;

    border-radius: 18px;
  }

  .support-heart {
    width: 56px;
    height: 56px;
  }

  .support-heart img {
    width: 43px;
    height: 43px;
  }

  .support-copy strong {
    font-size: 0.88rem;
  }

  .support-copy p {
    font-size: 0.74rem;
  }

  .support-arrow {
    width: 42px;
    height: 42px;
  }


  /* Takeaway */
  .takeaway-card {
    margin-top: 18px;

    padding: 16px;

    border-radius: 18px;
  }
}

.companion-card-link{

margin-top:18px;

display:inline-flex;
align-items:center;
gap:8px;

padding:0;

border:0;

background:none;

color:#5d48c8;

font-weight:700;
font-size:.88rem;

cursor:pointer;

transition:
color .18s ease,
transform .18s ease;
}

.companion-card-link:hover{

color:#3d2ea5;

transform:translateX(3px);

}

.companion-card-link:focus-visible{

outline:
3px solid
rgba(93,72,200,.28);

outline-offset:4px;

border-radius:8px;

}

/* =========================================================
   COMPANION CARD ACTIONS
   ========================================================= */

.companion-card-link {
  margin-top: 18px;
  padding: 0;

  display: inline-flex;
  align-items: center;

  gap: 8px;

  color: #5540bd;

  border: 0;
  background: transparent;

  font: inherit;
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.3;

  cursor: pointer;

  transition:
    color 160ms ease,
    gap 160ms ease,
    transform 160ms ease;
}

.companion-card-link span {
  font-size: 1rem;
  line-height: 1;
}

.companion-card-link:hover {
  gap: 11px;

  color: #38269a;

  transform: translateX(1px);
}

.think-core-card .companion-card-link {
  color: #b66b00;
}

.think-core-card .companion-card-link:hover {
  color: #895000;
}

.try-core-card .companion-card-link {
  color: #2d8058;
}

.try-core-card .companion-card-link:hover {
  color: #1e6543;
}

.companion-card-link:focus-visible {
  outline:
    3px solid
    rgba(95, 73, 207, 0.30);

  outline-offset: 4px;

  border-radius: 6px;
}

@media (max-width: 600px) {
  .companion-card-link {
    min-height: 44px;

    margin-top: 14px;

    font-size: 0.86rem;
  }
}

/* =========================================================
   END OF FILE
   ========================================================= */