/* Intesoma® Breathwork – Atemmuster-Guide
 *
 * Hand-written CSS, no framework. Every value here was measured off the live
 * Manus page so the rendered result matches it. Breakpoints follow the ones
 * the original Tailwind build used: md = 768px, lg = 1024px.
 */

:root {
  --creme: #f9f7f2;
  --coral: #ff7f72;
  --coral-hover: #f06b5e;
  --dark: #262626;
  --warm-gray: #6b6460;
  --soft-gray: #9b9490;
  --terracotta: #e8c4b8;
  --field-border: #d4cfc8;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--dark);
  background: var(--creme);
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; }
/* Images carry width/height attributes to reserve layout space, so the
   intrinsic height has to be released back to the aspect ratio. */
img { max-width: 100%; height: auto; }
a, button, input { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), a { cursor: pointer; }
h1, h2 { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }

/* The watercolour texture sits fixed behind everything at low opacity so it
   stays put while the thank-you page scrolls. */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .18;
  pointer-events: none;
  background-image: url("/images/intesoma-bg-texture.webp");
  background-size: cover;
  background-position: bottom left;
}

.site-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- header ---------- */

.site-header { padding: 2rem 1.5rem 1rem; }
.brand-logo { width: auto; height: 2rem; opacity: .8; transition: opacity .2s ease; }
.brand-logo:hover { opacity: 1; }

/* ---------- landing ---------- */

.landing-main {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.landing-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

/* Below 1024px the guide mockup is dropped entirely rather than stacked. */
.visual-column { display: none; }

.freebie-badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: .25rem .75rem;
  color: var(--coral);
  border: 1px solid var(--coral);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.333;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.guide-mockup { display: block; width: 100%; max-width: 24rem; }
.authors-note {
  margin: 1.5rem 0 0;
  color: var(--warm-gray);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: .875rem;
  font-style: italic;
  line-height: 1.43;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--warm-gray);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.333;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.copy-column h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  line-height: 1.25;
}

.lead { margin: 0 0 1.5rem; color: var(--warm-gray); font-size: 1rem; line-height: 1.625; }
.mini-rule { width: 3rem; height: 1px; margin: 0 0 1.5rem; background: var(--terracotta); }

.benefit-list { padding: 0; margin: 0 0 2rem; list-style: none; }
.benefit-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .5rem;
  font-size: .875rem;
  line-height: 1.43;
}
.benefit-list li:last-child { margin-bottom: 0; }
.benefit-list svg { flex-shrink: 0; margin-top: .125rem; color: var(--coral); }

/* ---------- form ---------- */

.lead-form { width: 100%; }
.lead-form input {
  display: block;
  width: 100%;
  margin-bottom: .75rem;
  padding: .75rem 1rem;
  color: var(--dark);
  border: 1.5px solid var(--field-border);
  border-radius: 0;
  outline: none;
  background: rgba(255, 255, 255, .7);
  font-size: .875rem;
  line-height: 1.43;
  transition: border-color .18s ease;
}
.lead-form input:focus { border-color: var(--coral); }

.lead-form button, .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin: 0 0 .75rem;
  padding: .75rem 1.5rem;
  color: white;
  border: 0;
  background: var(--coral);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.43;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .16s ease, transform .16s ease;
}
.lead-form button:hover, .primary-button:hover { background: var(--coral-hover); }
.lead-form button:active, .primary-button:active { transform: scale(.97); }
.lead-form button:disabled { background: #e8a09a; cursor: wait; }

.form-error { margin: -.25rem 0 .75rem; color: var(--coral); font-size: .75rem; line-height: 1.333; }
.form-error[hidden] { display: none; }
.form-help { margin: 0; color: var(--soft-gray); font-size: .75rem; line-height: 1.333; }

/* Honeypot: bots fill it, humans never see it. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- thank you ---------- */

/* The padding sits outside the 42rem cap, so the column really is 672px wide. */
.thankyou-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 3rem 1.5rem;
}
.thankyou-inner { width: 100%; max-width: 42rem; margin: 0 auto; text-align: center; }

.thankyou-hero { margin: 0 0 3.5rem; }
.success-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  color: var(--coral);
  border-radius: 50%;
  background: rgba(255, 127, 114, .12);
}
.thankyou-hero .eyebrow { margin-bottom: .75rem; }
.thankyou-hero h1 { margin: 0 0 1rem; font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.25; }
.thankyou-hero > p:not(.eyebrow) { max-width: 32rem; margin: 0 auto 1.5rem; color: var(--warm-gray); font-size: 1rem; line-height: 1.625; }

.outline-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  color: var(--coral);
  border: 1.5px solid var(--coral);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.333;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .16s ease, background .16s ease;
}
.outline-button:hover { color: white; background: var(--coral); }

.section-rule { height: 1px; margin: 0 0 3.5rem; background: var(--terracotta); }

.education-cta .eyebrow { margin-bottom: 1rem; }
.education-cta h2 { margin: 0 0 1rem; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; }
.education-cta > p:not(.eyebrow):not(.small-print) { max-width: 36rem; margin: 0 auto; color: var(--warm-gray); font-size: 1rem; line-height: 1.625; }

.facts-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0 2.5rem;
  color: var(--warm-gray);
  font-size: .875rem;
}
.facts-row span { display: inline-flex; align-items: center; gap: .5rem; }

blockquote {
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  padding: 1.25rem 1.5rem;
  color: var(--dark);
  border: 1.5px solid var(--terracotta);
  background: rgba(255, 255, 255, .65);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.625;
}
blockquote p { margin: 0 0 .75rem; }
blockquote footer {
  margin: 0;
  color: var(--soft-gray);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .75rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.education-cta .primary-button { width: auto; margin: 0; padding: 1rem 2rem; }
.small-print { margin: 1rem 0 0; color: var(--soft-gray); font-size: .75rem; line-height: 1.333; }

/* ---------- footer ---------- */

.site-footer { padding: 1.5rem; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  max-width: 72rem;
  margin: 0 auto;
  color: var(--soft-gray);
  font-size: .75rem;
  line-height: 1.333;
}
.footer-inner nav { display: flex; gap: 1rem; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- breakpoints ---------- */

@media (min-width: 640px) {
  .footer-inner { flex-direction: row; }
  .facts-row { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
}

@media (min-width: 768px) {
  .site-header { padding: 2rem 3rem 1rem; }
  .brand-logo { height: 2.5rem; }
  .landing-main { padding: 4rem 3rem; }
  .thankyou-main { padding: 3rem 3rem; }
  .site-footer { padding: 1.5rem 3rem; }
}

@media (min-width: 1024px) {
  .landing-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .visual-column { display: flex; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
