/* ============================================================
   CONSCIOUS CRADLE — component styles
   ============================================================ */

/* ---------- site header ---------- */
.cc-site-header {
  position: relative;
  height: 88px; /* reserve space so content doesn't sit under the fixed brand */
}
.cc-brand {
  position: fixed;
  top: 18px;
  left: clamp(16px, 2.5vw, 32px);
  z-index: 60;
  height: 48px;
  padding: 0 24px;
  font-family: var(--cc-font-serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--cc-ink);
  background: var(--cc-accent);
  border-radius: var(--cc-radius-pill);
  box-shadow: 0 12px 28px rgba(18,18,18,0.10), 0 2px 6px rgba(18,18,18,0.06);
  display: inline-flex;
  align-items: center;
  transition: transform .25s var(--cc-ease), box-shadow .25s var(--cc-ease);
}
.cc-brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(18,18,18,0.14), 0 4px 10px rgba(18,18,18,0.08);
}
.cc-header-fab-stack {
  position: fixed;
  top: 18px;
  right: clamp(16px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  z-index: 60;
}
.cc-header-fab-stack .cc-fab {
  width: 48px;
  height: 48px;
}

/* ---------- bottom-right chat fab ---------- */
.cc-chat-fab {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  bottom: clamp(16px, 2.5vw, 32px);
  width: 56px;
  height: 56px;
  z-index: 60;
}
.cc-brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cc-accent);
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px var(--cc-accent-ink);
}
.cc-nav {
  display: none;
  gap: 28px;
  align-items: center;
}
.cc-nav a {
  font-family: var(--cc-font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--cc-ink-2);
  transition: color .2s var(--cc-ease);
}
.cc-nav a:hover { color: var(--cc-ink); }
.cc-nav a.is-current { color: var(--cc-accent-ink); }
@media (min-width: 820px) {
  .cc-nav { display: flex; }
}

/* ---------- hero ---------- */
.cc-hero {
  padding-block: clamp(16px, 2vw, 32px) clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.cc-hero__grid {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: 1fr;
  align-items: flex-start;
}
@media (min-width: 820px) {
  .cc-hero__grid { grid-template-columns: repeat(2, 1fr); }
}
.cc-hero__title {
  margin-bottom: 20px;
}
.cc-hero__blurb {
  max-width: 52ch;
  margin-bottom: 28px;
}
.cc-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 5px;
  background: var(--cc-surface);
  border-radius: var(--cc-radius-lg);
  border: 1px solid var(--cc-line);
  box-shadow: var(--cc-shadow-md);
  width: 100%;
}
.cc-hero__meta-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cc-hero__meta-row p {
  font-size: 14px;
  color: var(--cc-ink-2);
  line-height: 1.5;
}

/* ---------- two-col block ---------- */
.cc-split {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 820px) {
  .cc-split { grid-template-columns: repeat(2, 1fr); }
  .cc-split--media-right .cc-split__media { order: 2; }
}
.cc-split__body { max-width: 52ch; }
.cc-split__title { margin-bottom: 20px; }
.cc-split__text { margin-bottom: 28px; }
.cc-split__media {
  border-radius: var(--cc-radius-lg);
  overflow: hidden;
  background: var(--cc-surface-tint);
  box-shadow: var(--cc-shadow-md);
  aspect-ratio: 4 / 3;
}
.cc-split__media img,
.cc-split__media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

/* ---------- feature grid (tools) ---------- */
.cc-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .cc-features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .cc-features { grid-template-columns: repeat(3, 1fr); }
}
.cc-feature {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--cc-surface);
  border: 0px solid var(--cc-line);
  border-radius: var(--cc-radius-md);
  box-shadow: var(--cc-shadow-md);
  transition: transform .3s var(--cc-ease), box-shadow .3s var(--cc-ease), border-color .3s var(--cc-ease);
}
.cc-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--cc-shadow-md);
  border-color: transparent;
}
.cc-feature__body h3 {
  margin-bottom: 6px;
  font-family: var(--cc-font-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--cc-ink);
}
.cc-feature__body p {
  font-size: 14px;
  color: var(--cc-ink-3);
  line-height: 1.5;
}

/* ---------- pricing / plan cards ---------- */
.cc-plans {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .cc-plans { grid-template-columns: repeat(3, 1fr); }
}
.cc-plan {
  display: flex;
  flex-direction: column;
  background: var(--cc-surface);
  color: var(--cc-ink);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius-lg);
  padding: 32px;
  transition: transform .35s var(--cc-ease), box-shadow .35s var(--cc-ease);
}
.cc-plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--cc-shadow-lg);
}

.cc-plan__name {
  font-family: var(--cc-font-serif);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--cc-ink);
  margin-bottom: 8px;
  text-align: center;
}
.cc-plan__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cc-accent-ink);
  margin-bottom: 24px;
  text-align: center;
}
.cc-plan--featured .cc-plan__tag { color: var(--cc-accent); }
.cc-plan__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
}
.cc-plan__row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--cc-ink-2);
  border-top: 1px solid var(--cc-line);
}
.cc-plan__row:first-child { border-top: 0; padding-top: 0; }
.cc-plan__row > svg {
  width: 20px;
  height: 20px;
  padding: 14px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--cc-accent-soft);
  color: var(--cc-accent-ink);
  flex-shrink: 0;
  margin-top: 0;
  overflow: visible; /* let stroke ends extend past the 20×20 box without clipping */
}
.cc-plan__cta { margin-top: auto; display: flex; justify-content: center; }

/* ---------- stat / trust band ---------- */
.cc-trust {
  padding: clamp(48px, 6vw, 88px) clamp(32px, 5vw, 80px);
  background: var(--cc-surface);
  border-radius: var(--cc-radius-lg);
  border: 1px solid var(--cc-line);
  text-align: center;
  box-shadow: var(--cc-shadow-sm);
}
.cc-trust__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cc-accent-soft);
  color: var(--cc-accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* ---------- podcast / media row ---------- */
.cc-podcast {
  border-radius: var(--cc-radius-md);
  overflow: hidden;
  background: var(--cc-surface);
  box-shadow: var(--cc-shadow-sm);
  border: 1px solid var(--cc-line);
}

.cc-tutorial {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
}
@media (max-width: 720px) {
  .cc-tutorial { grid-template-columns: auto 1fr; }
  .cc-tutorial__wave { display: none; }
}
.cc-tutorial__play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cc-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .25s var(--cc-ease), background .25s var(--cc-ease);
}
.cc-tutorial__play:hover {
  background: var(--cc-accent-ink);
  transform: scale(1.04);
}
.cc-tutorial__play svg { margin-left: 3px; }
.cc-tutorial__body { min-width: 0; }
.cc-tutorial__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cc-accent-ink);
  margin-bottom: 6px;
}
.cc-tutorial__title {
  font-family: var(--cc-font-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--cc-ink);
  line-height: 1.15;
  margin-bottom: 4px;
}
.cc-tutorial__meta {
  font-size: 13px;
  color: var(--cc-ink-3);
  line-height: 1.4;
}
.cc-tutorial__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 36px;
  width: 200px;
  flex-shrink: 0;
}
.cc-tutorial__wave span {
  flex: 1;
  background: var(--cc-accent-soft);
  border-radius: 2px;
  height: 30%;
  animation: cc-wave 1.6s ease-in-out infinite;
}
.cc-tutorial__wave span:nth-child(odd) { background: var(--cc-accent); opacity: .55; }
.cc-tutorial__wave span:nth-child(3n) { animation-delay: .15s; height: 70%; }
.cc-tutorial__wave span:nth-child(5n) { animation-delay: .3s; height: 95%; }
.cc-tutorial__wave span:nth-child(7n) { animation-delay: .45s; height: 50%; }
.cc-tutorial__wave span:nth-child(11n) { animation-delay: .6s; height: 80%; }

@keyframes cc-wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .cc-tutorial__wave span { animation: none; transform: scaleY(0.6); }
}

/* ---------- form placeholder ---------- */
.cc-form-slot {
  background: var(--cc-surface-tint);
  border: 1.5px dashed rgba(18,18,18,0.45); /* ≥3:1 boundary on tinted bg */
  border-radius: var(--cc-radius-md);
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  min-height: 320px;
  justify-content: center;
}
.cc-form-slot__label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cc-ink-3); /* AA pass on tinted bg */
  text-transform: uppercase;
}
.cc-form-slot__title {
  font-family: var(--cc-font-serif);
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--cc-ink);
}
.cc-form-slot__note {
  font-size: 13px;
  color: var(--cc-ink-3);
  max-width: 30ch;
}

/* ---------- section header ---------- */
.cc-section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(32px, 4vw, 56px);
  max-width: 680px;
}
.cc-section-head--center {
  margin-inline: auto;
  align-items: center;
  text-align: center;
}
/* allow centered section heads (and their inner lede) to span wider on laptop+ so short headings/subheadings stay on one line */
@media (min-width: 1040px) {
  .cc-section-head--center { max-width: none; }
  .cc-section-head--center .cc-lede { max-width: none; }
}

/* ---------- footer ---------- */
.cc-site-footer {
  padding-block: clamp(48px, 6vw, 80px) 32px;
  border-top: 0px solid var(--cc-line);
  margin-top: 0px;
  background: var(--cc-bg);
}

.cc-site-footer__top {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: end;
  margin-bottom: 40px;
}

@media (min-width: 720px) {
  .cc-site-footer__top { grid-template-columns: 2fr 1fr; }
}

.cc-site-footer__tag {
  font-family: var(--cc-font-serif);
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--cc-ink);
  text-wrap: balance;
}

.cc-site-footer__tag .cc-accent { color: var(--cc-accent-ink); }
.cc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding-block: 24px;
  border-bottom: 0px solid var(--cc-line);
}

.cc-footer-links a {
  font-family: var(--cc-font-sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cc-ink-2);
  transition: color .2s var(--cc-ease);
}

.cc-footer-links a:hover { 
  color: var(--cc-accent-ink);
}

.cc-site-footer__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 16px;
  color: var(--cc-ink);
  text-align: center;
}

/* ---------- floating action circles (modernized) ---------- */
.cc-fab-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 40;
}
.cc-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cc-surface);
  color: var(--cc-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--cc-shadow-md);
  border: 0px solid var(--cc-line);
  transition: transform .25s var(--cc-ease), background .25s var(--cc-ease), color .25s var(--cc-ease);
}
.cc-fab:hover {
  background: var(--cc-accent-button-hover);
  color: var(--cc-ink);
  transform: translateY(-2px);
}
.cc-fab--accent {
  background: var(--cc-accent);
  border: 0px solid var(--cc-accent-border); /* boundary contrast ≥3:1 (WCAG 1.4.11) */
  color: var(--cc-ink);
}
.cc-fab--accent:hover {
  background: var(--cc-accent-button-hover);
  color: var(--cc-ink);
  border-color: var(--cc-ink);
  transform: translateY(-2px);
}
