/* Bright organic wellness palette */
:root {
  --ink: #263b32;
  --muted: #68776f;
  --line: #ded7c8;
  --soft: #f2ede2;
  --surface: #fffdf8;
  --purple: #5f806b;
  --purple2: #789982;
  --lav: #e5ede5;
  --navy: #304b3f;
  --gold: #c67d55;
  --pink: #c98578;
  --green: #5f806b;
  --blue: #6f8f91;
  --danger: #ad5e58;
  --shadow: 0 24px 64px rgba(63, 79, 67, 0.13);
  --shadow-sm: 0 10px 30px rgba(63, 79, 67, 0.09);
}
html {
  background: #f7f3e9;
}
body,
.app-shell,
.founder-shell,
.legal-body {
  color: var(--ink);
  background:
    radial-gradient(
      circle at 88% 7%,
      rgba(143, 169, 143, 0.18),
      transparent 27%
    ),
    radial-gradient(
      circle at 9% 24%,
      rgba(210, 174, 139, 0.17),
      transparent 28%
    ),
    #f7f3e9;
}
small,
.muted,
.page-head p,
.universe-head p {
  color: var(--muted);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-color: rgba(74, 112, 91, 0.36);
}
.brand {
  color: #2c473a;
}
.brand-mark {
  color: #fffdf8;
  background: linear-gradient(145deg, #88a88e, #5f806b 62%, #456554);
  filter: drop-shadow(0 4px 8px rgba(65, 96, 78, 0.22));
}
.topbar,
.app-top {
  background: rgba(255, 253, 248, 0.92);
  border-color: rgba(94, 119, 102, 0.2);
  box-shadow: 0 8px 28px rgba(67, 84, 71, 0.08);
}
.nav-link,
.ghost,
.icon-btn {
  color: #395347;
}
.nav-link:hover,
.ghost:hover {
  color: #274236;
  background: rgba(95, 128, 107, 0.1);
}
.primary {
  color: #fffdf8;
  background: linear-gradient(180deg, #688c75, #4b705d);
  border: 1px solid #4b705d;
  box-shadow:
    0 12px 28px rgba(72, 109, 89, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.26);
}
.primary:hover {
  background: linear-gradient(180deg, #5e846c, #3f6552);
}
.secondary {
  color: #476554;
  background: #fffdf8;
  border: 1px solid #aabaaa;
}
.secondary:hover {
  background: #edf2e9;
  border-color: #789982;
}
.hero {
  background:
    radial-gradient(
      circle at 75% 43%,
      rgba(125, 155, 130, 0.2),
      transparent 28%
    ),
    radial-gradient(
      circle at 12% 78%,
      rgba(204, 158, 119, 0.13),
      transparent 31%
    ),
    linear-gradient(135deg, #fbf8f0, #f2eadc 55%, #edf1e7);
}
.hero:after {
  opacity: 0.27;
  background-image: radial-gradient(circle, #8ca28d 1px, transparent 1.4px);
  mask-image: linear-gradient(90deg, transparent 20%, #000 62%, transparent);
}
.hero-copy h1 {
  color: #2a3e34;
}
.hero-copy p {
  color: #586a61;
}
.eyebrow {
  color: #9b5f40;
  background: rgba(198, 125, 85, 0.09);
  border: 1px solid rgba(181, 111, 73, 0.26);
}
.hero-card {
  border: 1px solid rgba(86, 118, 98, 0.28);
  background:
    radial-gradient(
      circle at 50% 53%,
      rgba(134, 166, 140, 0.3),
      transparent 36%
    ),
    linear-gradient(155deg, #fdf9ef, #e7eddf);
  box-shadow:
    inset 0 0 70px rgba(255, 255, 255, 0.45),
    0 28px 70px rgba(67, 91, 72, 0.16);
}
.hero-card:before,
.hero-card:after,
.universe:before,
.universe:after {
  border-color: rgba(76, 111, 89, 0.2);
}
.flower-shape i {
  border-color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(155deg, #f5d8b8, #d49a73 48%, #a9654b);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.66),
    0 10px 24px rgba(100, 74, 52, 0.16);
}
.star-center,
.universe-center {
  color: #2e4538;
  background: #fffaf0;
  border-color: #bd7d5b;
  box-shadow:
    0 0 24px rgba(134, 162, 136, 0.26),
    0 12px 30px rgba(73, 92, 75, 0.16);
}
.orbit,
.wing {
  color: #2d4438;
  background: rgba(255, 253, 248, 0.94);
  border-color: rgba(85, 116, 96, 0.25);
  box-shadow: 0 8px 20px rgba(73, 92, 75, 0.08);
}
.section,
.section.alt,
.footer {
  color: var(--ink);
  background: transparent;
}
.section.alt {
  background: rgba(232, 237, 226, 0.56);
  border-block-color: rgba(84, 116, 95, 0.14);
}
.card,
.panel,
.stat,
.manual-card,
.privacy-card,
.offer,
.controls,
.preview,
.insight {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.card:hover,
.identity:hover {
  border-color: #9fb29f;
}
.card-icon,
.manual-icon,
.nav-icon,
.identity i {
  color: #476554;
  background: #e4ede3;
  border: 1px solid #c7d5c6;
}
.cta,
.points {
  color: #fffdf8;
  background:
    radial-gradient(
      circle at 82% 24%,
      rgba(232, 205, 168, 0.18),
      transparent 29%
    ),
    linear-gradient(140deg, #456554, #304b3f);
  border: 1px solid #567866;
}
.cta p,
.points span,
.points small {
  color: #e9efe8 !important;
}
.sidebar {
  background: #fffdf8;
  border-color: var(--line);
}
.side-btn {
  color: #5e6e65;
}
.side-btn:hover,
.side-btn.active {
  color: #395a49;
  background: #e9f0e7;
}
.app-body {
  background: #f6f2e8;
}
.universe {
  color: var(--ink);
  background:
    radial-gradient(
      circle at 50% 55%,
      rgba(188, 210, 186, 0.32),
      transparent 35%
    ),
    linear-gradient(155deg, #fbf8ef, #e5ebdf);
  border-color: #c9d4c6;
}
.identity,
.listbox,
.section-toggle,
.audience,
.theme,
.chip,
.social,
.feedback-choice {
  color: #354e41;
  background: #fffdf8;
  border-color: #d9d3c6;
}
.identity strong {
  color: #2c4437;
}
.audience.active,
.theme.active,
.chip.active,
.feedback-choice.active {
  color: #fffdf8;
  background: #5f806b;
  border-color: #5f806b;
}
.stat-label {
  color: #9a6347;
}
.trend {
  color: #567a63;
}
.field input,
.field select,
.field textarea,
.chat-form input,
.ticket input,
.ticket textarea,
.feedback textarea,
.share-url input {
  color: #263b32;
  background: #fffdf8;
  border-color: #cdc7ba;
}
.field input::placeholder,
.field textarea::placeholder,
.chat-form input::placeholder,
.feedback textarea::placeholder {
  color: #87928c;
}
.note {
  color: #43594d;
  background: #edf2e9;
  border: 1px solid #cbd9ca;
}
.warn,
.insight.warnbox {
  color: #704f3b;
  background: #f8eadc;
  border: 1px solid #e4c6aa;
}
.success {
  color: #3d674f;
  background: #e7f1e8;
}
.flow {
  color: var(--ink);
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(200, 162, 126, 0.16),
      transparent 25%
    ),
    radial-gradient(
      circle at 88% 70%,
      rgba(135, 164, 139, 0.18),
      transparent 28%
    ),
    #f7f3e9;
}
.flow-card {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.97);
  border-color: #d9d2c3;
  box-shadow: var(--shadow);
}
.flow-card > p {
  color: #637068;
}
.mission,
.option {
  color: #2d4438;
  background: #fffdf8;
  border-color: #d8d1c4;
}
.mission:hover,
.mission.selected,
.option:hover,
.option.selected {
  color: #263b32;
  background: #edf2e9;
  border-color: #7f9b84;
}
.question-visual {
  border-color: #d7cbbb;
  background:
    radial-gradient(
      circle at 28% 31%,
      rgba(208, 159, 120, 0.18),
      transparent 34%
    ),
    radial-gradient(
      circle at 74% 69%,
      rgba(120, 153, 130, 0.2),
      transparent 34%
    ),
    #f8f4ea;
}
.question-visual span {
  background: rgba(255, 253, 248, 0.86);
  border-color: #ded6c8;
  box-shadow: 0 14px 32px rgba(74, 91, 77, 0.1);
}
.question-visual i {
  color: #77837d;
}
.option-letter {
  color: #8e5a41;
  background: #f6e8db;
  border-color: #e2c3aa;
}
.option.selected .option-letter {
  color: #fffdf8;
  background: #5f806b;
  border-color: #5f806b;
}
.screen,
.screen.night,
.public-profile.night {
  color: var(--ink);
  background: #fffdf8;
}
.preview-cover,
.public-cover,
.screen.night .preview-cover,
.public-profile.night .public-cover {
  background: linear-gradient(145deg, #f4eadc, #e4ece1);
}
.preview-section,
.public-section,
.screen.night .preview-section,
.public-profile.night .public-section {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.9);
  border-color: #dcd5c8;
}
.public-page {
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(200, 160, 125, 0.17),
      transparent 26%
    ),
    #f5f0e6;
}
.public-profile {
  color: var(--ink);
  background: #fffdf8;
  border-color: #d8d0c1;
}
.match:before {
  background: #fffdf8;
}
.bar {
  background: #e3e6dd;
}
.bar span,
.chart-bar {
  background: linear-gradient(90deg, #6f957d, #ba7b5a);
}
.match-page {
  color: var(--ink);
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(202, 158, 121, 0.17),
      transparent 25%
    ),
    radial-gradient(
      circle at 88% 72%,
      rgba(128, 160, 134, 0.2),
      transparent 28%
    ),
    #f7f3e9;
}
.match-banner {
  color: var(--ink);
  background:
    radial-gradient(
      circle at 85% 28%,
      rgba(196, 142, 105, 0.16),
      transparent 29%
    ),
    #e9efe5;
  border-color: #bdcbb9;
}
.match-banner span,
.match-purpose {
  color: #9b5f40;
}
.match-banner p {
  color: #5f6d65;
}
.match-score,
.match-result-score,
.public-flower,
.match-flower {
  color: #fffdf8;
  background: linear-gradient(145deg, #7f9f85, #5f806b 65%, #456554);
  border-color: #e9ded0;
  box-shadow: 0 0 34px rgba(82, 121, 96, 0.2);
}
.match-result-score {
  border-color: #fffaf1;
}
.chat {
  color: #fffdf8;
  background: #365346;
  border-color: #49695a;
}
.chat-head {
  background: #2d493c;
  border-color: #49695a;
}
.chat-tabs,
.chat-form {
  border-color: rgba(255, 255, 255, 0.16);
}
.chat-tab {
  color: #dfe9e1;
  background: #365346;
}
.chat-tab.active {
  color: #fff5e9;
  box-shadow: inset 0 -2px #d09a73;
}
.messages {
  background: #3b584b;
}
.message.bot {
  background: #456454;
  border-color: rgba(255, 255, 255, 0.14);
}
.message.user,
.chat-fab {
  color: #fffdf8;
  background: #b97856;
}
.share-item,
.ticket-row {
  color: var(--ink);
  background: #fffdf8;
  border-color: #d8d1c4;
}
.legal-shell {
  color: var(--ink);
  background: #fffdf8;
  border-color: #d8d0c1;
}
.legal-shell section,
.legal-footer {
  border-color: #dfd8ca;
}
.legal-shell section p {
  color: #5e6d64;
}
.legal-badge {
  color: #83553f;
  background: #f4e4d7;
}

@media (max-width: 760px) {
  .topbar {
    background: rgba(255, 253, 248, 0.97);
  }
  .hero {
    background: linear-gradient(150deg, #fbf8f0, #f0e8da 56%, #e9efe5);
  }
}
@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }
  h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }
  .topbar-inner {
    min-height: 66px;
  }
  .brand {
    font-size: 0.9rem;
  }
  .hero {
    padding: 36px 0 56px;
  }
  .hero-actions,
  .hero-actions .primary,
  .hero-actions .secondary {
    width: 100%;
  }
  .hero-card {
    min-height: 405px;
    padding: 17px;
    border-radius: 28px;
  }
  .orbit {
    min-width: 90px;
    font-size: 0.67rem;
  }
  .star-center {
    width: 87px;
    height: 87px;
  }
  .section {
    padding: 66px 0;
  }
  .grid3,
  .trust-grid,
  .mode-grid,
  .rewards,
  .stats,
  .admin-grid,
  .form-grid,
  .mission-grid,
  .section-toggles,
  .two-list {
    grid-template-columns: 1fr;
  }
  .cta {
    padding: 31px 23px;
    border-radius: 24px;
    align-items: flex-start;
    flex-direction: column;
  }
  .flow {
    padding: 13px 9px 28px;
  }
  .flow-top {
    margin-bottom: 13px;
  }
  .flow-top .brand span:last-child {
    display: none;
  }
  .flow-card {
    min-height: calc(100vh - 84px);
    padding: 23px 17px;
    border-radius: 22px;
  }
  .flow-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .flow-actions .primary,
  .flow-actions .secondary,
  .flow-actions .ghost {
    width: 100%;
  }
  .score-row,
  .compat-row {
    grid-template-columns: 98px 1fr 37px;
    font-size: 0.78rem;
  }
  .app-top .brand span:last-child {
    display: none;
  }
  .page-head {
    flex-direction: column;
    align-items: stretch;
  }
  .page-head .primary,
  .page-head .secondary {
    width: 100%;
  }
  .universe {
    min-height: 450px;
    padding: 17px;
  }
  .universe-star {
    width: 100%;
  }
  .wing {
    padding: 5px 7px;
    font-size: 0.62rem;
  }
  .wing strong {
    font-size: 0.7rem;
  }
  .universe-center {
    width: 84px;
    height: 84px;
  }
  .universe-center strong {
    font-size: 1.35rem;
  }
  .panel,
  .manual-card,
  .controls,
  .preview {
    padding: 17px;
  }
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .people {
    gap: 13px;
  }
  .match {
    width: 115px;
    height: 115px;
  }
  .match strong {
    font-size: 1.75rem;
  }
  .public-page {
    padding: 12px 9px 38px;
  }
  .public-profile {
    border-radius: 22px;
  }
  .public-cover {
    padding: 34px 17px 27px;
  }
  .public-body {
    padding: 17px;
  }
  .chat-fab {
    right: 15px;
  }
  .chat {
    right: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final small-screen header polish. */
@media (max-width: 640px) {
  .topbar .nav .ghost {
    display: none;
  }
  .topbar .nav {
    gap: 6px;
  }
  .topbar .nav .primary {
    padding: 11px 14px;
    min-height: 44px;
  }
}

/* Authentication, founder operations, and legal pages */
.noscript {
  padding: 16px;
  text-align: center;
  color: #fff;
  background: #8b2d48;
  font-weight: 800;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 22px;
}
.auth-tabs .chip {
  cursor: pointer;
}
.auth-tabs .chip.active {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
}
.founder-shell {
  min-height: 100vh;
  background: #f7f5fb;
}
.founder-shell .main {
  width: min(100%, 1280px);
  margin: 0 auto;
}
.ticket-list {
  display: grid;
  gap: 11px;
}
.ticket-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 18px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.ticket-row small {
  display: block;
  margin: 4px 0;
  color: var(--muted);
}
.ticket-row p {
  margin: 9px 0 0;
}
.ticket-row select {
  width: 100%;
}
.legal-body {
  background: #f7f5fb;
}
.legal-top,
.legal-footer {
  width: min(calc(100% - 40px), 960px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}
.legal-top .brand img {
  border-radius: 10px;
}
.legal-shell {
  width: min(calc(100% - 40px), 860px);
  margin: 20px auto 64px;
  padding: clamp(26px, 6vw, 66px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}
.legal-shell h1 {
  font-size: clamp(2.7rem, 7vw, 5rem);
}
.legal-shell section {
  padding: 25px 0;
  border-top: 1px solid var(--line);
}
.legal-shell section:first-of-type {
  margin-top: 28px;
}
.legal-shell section h2 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}
.legal-shell section p {
  margin: 0;
  color: #4f4c5d;
}
.legal-lead {
  font-size: 1.16rem;
  color: var(--muted);
}
.legal-badge {
  display: inline-flex;
  padding: 8px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #5732bd;
  background: #eee8ff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.legal-callout {
  margin-top: 28px;
  padding: 20px;
  border-radius: 17px;
  color: #563b08;
  background: #fff4d5;
  border: 1px solid #efdca6;
}
.legal-footer {
  padding-bottom: 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 640px) {
  .legal-top,
  .legal-footer {
    width: min(calc(100% - 28px), 960px);
  }
  .legal-top .secondary {
    padding: 10px 12px;
  }
  .legal-shell {
    width: min(calc(100% - 18px), 860px);
    margin-top: 8px;
    border-radius: 23px;
  }
  .ticket-row {
    grid-template-columns: 1fr;
  }
  .auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
.share-library {
  margin-top: 18px;
}
.page-head.compact {
  margin-bottom: 12px;
}
.page-head.compact h3 {
  margin-bottom: 5px;
}
.share-list {
  display: grid;
  gap: 10px;
}
.share-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.share-item.revoked {
  opacity: 0.58;
  background: #faf9fc;
}
.share-item small,
.share-item code {
  display: block;
  margin-top: 5px;
}
.share-item code {
  overflow-wrap: anywhere;
  color: #5f3bc6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}
.share-item-actions {
  display: flex;
  gap: 7px;
}
.public-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 19px;
}
.public-name {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-bottom: 7px;
}
@media (max-width: 640px) {
  .share-item {
    grid-template-columns: 1fr;
  }
  .share-item-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .public-top .brand span:last-child {
    display: none;
  }
}

.text-link {
  width: fit-content;
  border: 0;
  padding: 0;
  color: #456b58;
  background: transparent;
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.forgot-link {
  justify-self: end;
  margin-top: 9px;
}
.recovery-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #c7d4c4;
  border-radius: 50%;
  color: #fffdf8;
  background: linear-gradient(145deg, #7f9f85, #537660);
  box-shadow: 0 14px 30px rgba(73, 105, 85, 0.2);
  font-size: 1.7rem;
  font-weight: 800;
}
.recovery-message {
  margin: 22px 0 16px;
}
.chat-head small {
  color: #dfe9e1;
}
.chat-fab {
  font-size: 1.35rem;
}
.message {
  line-height: 1.48;
  white-space: pre-wrap;
}
.thinking {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
}
.thinking span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9e5db;
  animation: coach-pulse 1.1s infinite ease-in-out;
}
.thinking span:nth-child(2) {
  animation-delay: 0.14s;
}
.thinking span:nth-child(3) {
  animation-delay: 0.28s;
}
@keyframes coach-pulse {
  0%,
  70%,
  100% {
    opacity: 0.38;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
.ticket p {
  color: #edf4ee;
}
.coach-consent {
  padding: 12px 14px;
  color: #2e4639;
  background: #f4eadc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
}
.coach-consent p {
  margin: 4px 0 9px;
  line-height: 1.42;
}
.coach-consent .secondary {
  width: 100%;
  padding: 9px 11px;
  font-size: 0.78rem;
}
.coach-consent.active {
  color: #e8f1e9;
  background: #2f493c;
}
.coach-consent.active {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 8px;
  align-items: start;
}
.coach-consent.active span {
  grid-row: 1 / 3;
  font-weight: 900;
}
.coach-consent.active p {
  margin: 0;
}
.coach-consent.active .text-link {
  color: #f1d0bb;
  font-size: 0.74rem;
}
.recovery-consent {
  margin-top: 16px;
}
@media (max-width: 640px) {
  .chat {
    right: 10px;
    bottom: 82px;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 100px);
    border-radius: 18px;
  }
  .messages {
    min-height: 210px;
  }
  .chat-fab {
    right: 12px;
    bottom: 12px;
  }
}

.learning-heading {
  margin: 28px 0 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.learning-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}
.learning-heading > p {
  max-width: 470px;
  color: var(--muted);
}
.learning-grid {
  align-items: stretch;
}
.learning-card {
  min-height: 330px;
}
.lesson-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.lesson-card-icon,
.lesson-icon {
  display: grid;
  place-items: center;
  border: 1px solid #d6ddcf;
  background: #eef2e8;
}
.lesson-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 1.45rem;
}
.lesson-icon {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  font-size: 2.2rem;
}
.lesson-card-top .offer-badge {
  margin: 0;
  color: #704828;
  background: #f8e3ce;
}
.recommendation-reason {
  display: block;
  margin-bottom: 10px;
  color: #587361;
  font-weight: 800;
}
.learning-card h3 {
  font-size: 1.28rem;
}
.learning-card button {
  width: 100%;
  margin-top: auto;
}
.lesson-detail {
  max-width: 880px;
}
.lesson-goal,
.lesson-practice,
.lesson-reflection {
  padding: 20px;
  border-radius: 18px;
}
.lesson-goal {
  margin-bottom: 18px;
  background: #edf2e9;
}
.lesson-goal span,
.lesson-practice span,
.lesson-reflection span {
  color: #8e583c;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lesson-goal h3,
.lesson-reflection h3 {
  margin: 7px 0 0;
}
.lesson-steps {
  margin: 0;
  padding: 5px 0 5px;
  list-style: none;
  counter-reset: lesson-step;
}
.lesson-steps li {
  counter-increment: lesson-step;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.lesson-steps li::before {
  content: counter(lesson-step);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fffdf8;
  background: #557860;
  font-weight: 900;
}
.lesson-practice {
  margin: 18px 0;
  color: #fffdf8;
  background: #365346;
}
.lesson-practice span {
  color: #f5cfb5;
}
.lesson-practice p {
  margin: 8px 0 0;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}
.lesson-reflection {
  border: 1px solid #e2c8b5;
  background: #fff4e8;
}
.lesson-reflection textarea {
  min-height: 105px;
  margin-top: 14px;
}
.newsletter-card {
  margin-top: 24px;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 30px;
  align-items: center;
  border: 1px solid #c8d4c3;
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 8% 18%,
      rgba(185, 120, 86, 0.12),
      transparent 30%
    ),
    #edf2e9;
  box-shadow: var(--shadow-sm);
}
.newsletter-card h2 {
  margin: 5px 0 8px;
}
.newsletter-card form > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin: 7px 0 8px;
}
.newsletter-card form > small {
  color: var(--muted);
}
.newsletter-success {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 2px 12px;
  padding: 18px;
  border-radius: 18px;
  color: #fffdf8;
  background: #456454;
}
.newsletter-success span {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #365346;
  background: #f6e8d4;
  font-weight: 900;
}
.newsletter-success small {
  color: #e2ece4;
}
@media (max-width: 760px) {
  .learning-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .newsletter-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  .newsletter-card form > div {
    grid-template-columns: 1fr;
  }
  .newsletter-card form button {
    width: 100%;
  }
}
