/* ===========================================
   CCB SURVEY LANDING PAGES
   Deep Ocean aesthetic — matches the main
   Connected Breathwork hero.
   Self-contained: no external CSS dependencies.
   =========================================== */

:root {
  --primary:       #164E63;
  --primary-light: #0E7490;
  --primary-dark:  #083344;
  --secondary:      #A98467;
  --secondary-light:#DDB892;
  --secondary-soft: #E9CBAE;
  --accent:         #D97706;
  --ink:        #083344;
  --text:       #475569;
  --cream:      #FAF9F6;
}

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

html, body { margin: 0; padding: 0; }

body.survey-landing {
  background: var(--primary-dark);
  color: var(--cream);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;

  /* Soft radial glow behind centered content */
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 28%,
                    rgba(14, 72, 94, 0.55) 0%,
                    rgba(14, 72, 94, 0.12) 45%,
                    transparent 75%),
    radial-gradient(ellipse 120% 80% at 50% 105%,
                    rgba(169, 132, 103, 0.10) 0%,
                    transparent 60%);
  background-attachment: fixed;
}

.survey-landing main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Fluid scale */
.survey-landing {
  --s-xs:  clamp(0.78rem, 0.74rem + 0.18vw, 0.88rem);
  --s-sm:  clamp(0.95rem, 0.88rem + 0.3vw, 1.05rem);
  --s-md:  clamp(1.08rem, 0.98rem + 0.45vw, 1.25rem);
  --s-lg:  clamp(1.4rem,  1.2rem + 0.9vw,  1.85rem);
  --s-xl:  clamp(2.5rem,  1.9rem + 2.8vw,  4.5rem);
  --gap-xs: clamp(0.5rem, 0.45rem + 0.2vw, 0.75rem);
  --gap-sm: clamp(0.9rem, 0.8rem + 0.4vw, 1.2rem);
  --gap-md: clamp(1.5rem, 1.3rem + 0.8vw, 2.2rem);
  --gap-lg: clamp(2.5rem, 2.1rem + 1.6vw, 4rem);
  --gap-xl: clamp(4rem, 3.2rem + 3vw, 7rem);
  --page-x: clamp(1.5rem, 2vw + 1rem, 4rem);
}

/* ===========================================
   Top chrome — wordmark + lang switch
   =========================================== */

.wordmark {
  position: absolute;
  top: clamp(1.25rem, 1.8vw, 2rem);
  left: var(--page-x);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: var(--s-sm);
  letter-spacing: 0.01em;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.9;
  z-index: 10;
}
.wordmark span {
  color: var(--secondary-light);
  font-style: italic;
  font-weight: 400;
}

.lang-switch {
  position: fixed;
  top: clamp(1.25rem, 1.8vw, 2rem);
  right: clamp(1.25rem, 1.8vw, 2rem);
  z-index: 10;
  font-size: var(--s-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lang-switch a {
  color: var(--cream);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(233, 203, 174, 0.28);
  border-radius: 999px;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}
.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: var(--primary-dark);
  border-color: var(--secondary-light);
  background: var(--secondary-light);
  outline: none;
}

/* ===========================================
   Hero — centered, cinematic
   =========================================== */

.hero {
  min-height: 100dvh;
  padding: clamp(5rem, 10vh, 7rem) var(--page-x) clamp(2.5rem, 6vh, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--gap-md);
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.hero--feedback { max-width: 680px; }

/* ---------- Logo ----------
   Uses a pre-tinted sand-colour PNG (assets/logo_trans_sand.png)
   generated from the original black linework logo. Delivered as a
   plain <img> so it works identically under file:// and http(s)://
   without CSS-mask same-origin gotchas. */
.logo {
  width:  clamp(120px, 16vw, 180px);
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.9;
  animation: logo-breathe 9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: transform, opacity;
}
.hero--feedback .logo {
  width:  clamp(90px, 11vw, 130px);
}
@keyframes logo-breathe {
  0%, 100% { transform: scale(1);    opacity: 0.88; }
  50%      { transform: scale(1.035); opacity: 1; }
}

/* ---------- Text block ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--s-xs);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--secondary-light);
  margin: 0;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.display {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: var(--s-xl);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0;
  max-width: 16ch;
}
.display em {
  font-style: italic;
  color: var(--secondary-light);
  font-weight: 500;
}

.lede {
  font-size: var(--s-md);
  line-height: 1.6;
  color: rgba(250, 249, 246, 0.78);
  max-width: 46ch;
  margin: 0;
}

/* ---------- Primary CTA — big sand button ---------- */
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: var(--gap-sm);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 2.25rem;
  background: var(--secondary-light);
  color: var(--primary-dark);
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 0.93rem + 0.3vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--secondary-light);
  box-shadow: 0 18px 40px -18px rgba(169, 132, 103, 0.65),
              inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 280ms ease,
              background 280ms ease,
              border-color 280ms ease;
  will-change: transform;
}
.cta svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cta:hover,
.cta:focus-visible {
  transform: translateY(-3px);
  background: var(--secondary-soft);
  border-color: var(--secondary-soft);
  box-shadow: 0 22px 46px -16px rgba(217, 184, 146, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.45);
  outline: none;
}
.cta:hover svg,
.cta:focus-visible svg { transform: translateX(4px); }
.cta:active { transform: translateY(-1px); }

.cta-meta {
  font-size: var(--s-xs);
  color: rgba(250, 249, 246, 0.55);
  letter-spacing: 0.04em;
}

/* ---------- Info / trust block — centered under the CTA ---------- */
.info {
  margin-top: var(--gap-lg);
  padding-top: var(--gap-md);
  border-top: 1px solid rgba(250, 249, 246, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.25rem;
  list-style: none;
  width: 100%;
  max-width: 560px;
}
.info li {
  font-size: var(--s-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.72);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.info li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary-light);
}

/* ===========================================
   Intake — what-to-expect section
   =========================================== */

.expect {
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--page-x) var(--gap-xl);
  text-align: center;
}

.expect h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: var(--s-lg);
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 auto var(--gap-md);
  max-width: 26ch;
}

.expect ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(250, 249, 246, 0.1);
  border-top: 1px solid rgba(250, 249, 246, 0.1);
  border-bottom: 1px solid rgba(250, 249, 246, 0.1);
  text-align: left;
}

.expect li {
  background: var(--primary-dark);
  padding: clamp(1.25rem, 1vw + 0.8rem, 1.75rem) clamp(1.25rem, 1vw + 0.8rem, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.expect .num {
  font-family: 'Playfair Display', serif;
  font-size: var(--s-md);
  font-weight: 500;
  color: var(--secondary-light);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.expect .label {
  font-size: var(--s-sm);
  color: rgba(250, 249, 246, 0.86);
  line-height: 1.45;
}

/* ===========================================
   Footer
   =========================================== */

.quiet-footer {
  padding: var(--gap-md) var(--page-x);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: var(--s-xs);
  color: rgba(250, 249, 246, 0.5);
  border-top: 1px solid rgba(250, 249, 246, 0.08);
  text-align: center;
}
.quiet-footer a {
  color: rgba(250, 249, 246, 0.75);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease, color 220ms ease;
}
.quiet-footer a:hover,
.quiet-footer a:focus-visible {
  color: var(--secondary-light);
  border-color: currentColor;
  outline: none;
}

/* ===========================================
   Reveal + reduced motion
   =========================================== */

@media (prefers-reduced-motion: no-preference) {
  .reveal > * {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .reveal > *:nth-child(1) { animation-delay: 0.05s; }
  .reveal > *:nth-child(2) { animation-delay: 0.18s; }
  .reveal > *:nth-child(3) { animation-delay: 0.30s; }
  .reveal > *:nth-child(4) { animation-delay: 0.42s; }
  .reveal > *:nth-child(5) { animation-delay: 0.54s; }
  .reveal > *:nth-child(6) { animation-delay: 0.66s; }
  .reveal > *:nth-child(7) { animation-delay: 0.78s; }
  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo { animation: none !important; }
}

/* ===========================================
   Responsive
   =========================================== */

@media (max-width: 640px) {
  .info { gap: 0.5rem 1.25rem; }
  .info li { font-size: 0.72rem; }
  .expect ol { grid-template-columns: 1fr; }
  .cta { padding: 1rem 1.75rem; width: 100%; justify-content: center; }
  .cta-block { width: 100%; }
}
