/* ==================================================
   speaktoyourbody.com — Research Landing
   Aesthetic: editorial / quiet luxurious
   Palette: Körperwärme (cover-derived)
   ================================================== */

:root {
  /* ------ Palette ------ */
  --cream:         #F6EEE3;
  --cream-deep:    #EDE0D0;
  --cream-dim:     #E4D4C0;
  --paper:         #FBF6EC;

  --ink:           #1C120F;
  --ink-soft:      #3A2A24;
  --gray:          #7D6E66;
  --gray-soft:     #BFB0A6;
  --rule:          #D9C8B8;

  --burgundy:      #6B2A34;
  --burgundy-deep: #411A21;
  --terracotta:    #B9613F;
  --amber:         #D89E40;

  /* ------ Type ------ */
  --serif: "Fraunces", Georgia, serif;
  --body:  "Lora", Georgia, serif;

  /* ------ Motion ------ */
  --ease: cubic-bezier(0.2, 0.65, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  /* Subtle warm paper noise — very faint */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(184, 97, 63, 0.04), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(107, 42, 52, 0.035), transparent 50%);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--burgundy);
  text-decoration: underline;
  text-decoration-color: rgba(216, 158, 64, 0.6);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.3s var(--ease);
}
a:hover { color: var(--terracotta); }

::selection {
  background: var(--amber);
  color: var(--ink);
}

/* ==================================================
   Typography — editorial scale
   ================================================== */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--burgundy-deep);
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.98;
  font-weight: 300;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
  font-weight: 400;
  font-variation-settings: "opsz" 110;
}

em {
  font-style: italic;
  font-variation-settings: "opsz" 144;
  color: var(--terracotta);
}

p { margin: 0 0 1.4em 0; }

.meta {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 32px 0;
}

/* ==================================================
   Layout
   ================================================== */
.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 32px 40px;
}

@media (min-width: 900px) {
  .page { padding: 120px 32px 60px; }
}

/* ==================================================
   Breathing guide — signature detail
   Pulses at 4s inhale / 4s exhale (8s cycle)
   ================================================== */
.breath {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gray);
  opacity: 0;
  animation: breath-fade-in 2s var(--ease) 1.5s forwards;
}

.breath__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 0 rgba(185, 97, 63, 0.35);
  animation: breath-pulse 8s ease-in-out infinite;
}

.breath__label {
  opacity: 0.7;
}

@keyframes breath-pulse {
  0%,  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(185, 97, 63, 0.3); }
  25%       { transform: scale(1.6);  box-shadow: 0 0 0 14px rgba(185, 97, 63, 0); }
  50%       { transform: scale(1.6);  box-shadow: 0 0 0 14px rgba(185, 97, 63, 0); }
  75%       { transform: scale(1);    box-shadow: 0 0 0 0 rgba(185, 97, 63, 0.2); }
}

@keyframes breath-fade-in {
  to { opacity: 1; }
}

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

@media (max-width: 600px) {
  .breath { bottom: 20px; right: 20px; }
  .breath__label { display: none; }
}

/* ==================================================
   HERO
   ================================================== */
.hero {
  padding: 0 0 100px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 100px;
}

.hero__title {
  margin-bottom: 64px;
}

.hero__cover {
  display: inline-block;
  margin: 0;
  position: relative;
  max-width: 280px;
  transform: rotate(-1.5deg);
  transition: transform 0.6s var(--ease);
}
.hero__cover:hover {
  transform: rotate(-0.5deg) translateY(-4px);
}
.hero__cover img {
  width: 100%;
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(28, 18, 15, 0.06),
    0 8px 20px -4px rgba(28, 18, 15, 0.18),
    0 40px 60px -30px rgba(107, 42, 52, 0.3);
}
.hero__cover figcaption {
  margin-top: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gray);
  letter-spacing: 0.01em;
}

/* ==================================================
   LETTER
   ================================================== */
.letter {
  padding-bottom: 80px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 100px;
}

.letter p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.letter .lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 40px;
  font-variation-settings: "opsz" 90;
  letter-spacing: -0.005em;
}
.letter .lede em {
  font-style: italic;
  color: var(--burgundy);
}

.letter em { color: var(--burgundy); font-style: italic; }

.letter__signoff {
  margin-top: 48px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
}
.letter__signoff .sign {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--burgundy-deep);
  letter-spacing: 0.02em;
}

/* ==================================================
   FORM SECTION
   ================================================== */
.form-section {
  padding-bottom: 80px;
}

.form-section__header {
  margin-bottom: 64px;
}
.form-section__header h2 {
  margin-bottom: 24px;
}
.form-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 520px;
}
.form-note em { color: var(--burgundy); font-style: italic; }

/* ==================================================
   FORM — underlined inputs, refined checkboxes
   ================================================== */
.form {
  /* No container box — the form IS the page */
}

.row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
  padding-bottom: 8px;
}

.row__label {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.005em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.row__hint {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--gray);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.row__input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  padding: 10px 2px 12px;
  font-family: var(--body);
  font-size: 1.12rem;
  color: var(--ink);
  line-height: 1.4;
  transition: border-color 0.3s var(--ease),
              padding-left 0.3s var(--ease);
  border-radius: 0;
}
.row__input::placeholder {
  color: var(--gray-soft);
  font-style: italic;
  font-family: var(--serif);
}
.row__input:focus {
  outline: none;
  border-bottom-color: var(--burgundy);
  padding-left: 8px;
}
.row__input--short { max-width: 120px; }

.row--textarea textarea.row__input {
  border: 1px solid var(--rule);
  padding: 14px 16px;
  border-radius: 2px;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 90px;
}
.row--textarea textarea.row__input:focus {
  border-color: var(--burgundy);
  padding-left: 16px;
  background: var(--paper);
}

/* Hide number spinners in most browsers */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] { -moz-appearance: textfield; }

/* ==================================================
   Interests — refined custom checkboxes
   ================================================== */
.interests {
  border: none;
  padding: 0;
  margin: 64px 0 48px;
}

.interests__legend {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ink);
  padding: 0;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.interests__hint {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--gray);
  font-weight: 400;
}

.option {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding-left 0.3s var(--ease);
  position: relative;
}
.option:first-of-type { border-top: 1px solid var(--rule); }
.option:hover { padding-left: 6px; }

.option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option__mark {
  width: 22px;
  height: 22px;
  border: 1px solid var(--gray-soft);
  background: transparent;
  border-radius: 2px;
  margin-top: 3px;
  position: relative;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}
.option:hover .option__mark {
  border-color: var(--terracotta);
}
.option input:checked ~ .option__mark {
  background: var(--burgundy);
  border-color: var(--burgundy);
}
.option input:checked ~ .option__mark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 7px;
  width: 6px;
  height: 12px;
  border: solid var(--cream);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.option input:focus-visible ~ .option__mark {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.option__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 1px;
}
.option__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.option__desc {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.55;
}

.option--compact {
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: 16px 0;
  border: none !important;
}
.option--compact .option__mark {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.option--compact .option__desc {
  font-size: 0.88rem;
  color: var(--gray);
}

/* ==================================================
   Consent + submit
   ================================================== */
.consent {
  margin-top: 48px;
  margin-bottom: 32px;
  padding: 20px 24px;
  border-left: 2px solid var(--terracotta);
  background: rgba(237, 224, 208, 0.3);
  border-radius: 0 4px 4px 0;
}

.error {
  margin: 24px 0 0;
  padding: 16px 20px;
  background: rgba(107, 42, 52, 0.06);
  border-left: 2px solid var(--burgundy);
  color: var(--burgundy);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  animation: shake 0.5s var(--ease);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}

.submit {
  margin-top: 48px;
  display: flex;
  justify-content: flex-start;
}

.submit__btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  padding: 18px 32px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.submit__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease);
  z-index: 0;
}
.submit__btn > span,
.submit__btn > svg {
  position: relative;
  z-index: 1;
  transition: color 0.3s var(--ease);
}
.submit__btn:hover {
  color: var(--cream);
  border-color: var(--ink);
}
.submit__btn:hover::before {
  transform: translateX(0);
}
.submit__btn:hover svg {
  transform: translateX(4px);
}
.submit__btn svg {
  transition: transform 0.4s var(--ease);
}
.submit__btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* ==================================================
   Success state
   ================================================== */
.thanks {
  padding: 100px 0 40px;
  text-align: left;
  animation: thanks-fade-in 0.8s var(--ease);
}
@keyframes thanks-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.thanks__mark {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--terracotta);
  margin: 0 0 24px 0;
  letter-spacing: 0.4em;
  line-height: 1;
}
.thanks__title {
  margin-bottom: 32px;
}
.thanks__body {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 40px;
}
.thanks__sign {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--burgundy);
  font-style: italic;
}

/* ==================================================
   Footer
   ================================================== */
.footer {
  margin-top: 120px;
  padding: 48px 0 32px;
  border-top: 1px solid var(--rule);
  font-size: 0.86rem;
  color: var(--gray);
  font-family: var(--serif);
  font-style: italic;
}
.footer p { margin: 0 0 8px; }
.footer__fine {
  font-size: 0.8rem;
  color: var(--gray);
  max-width: 580px;
  font-style: normal;
  font-family: var(--body);
}

/* Honeypot — visually hidden, spam filter only */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==================================================
   Responsive refinements
   ================================================== */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .page { padding: 56px 24px 32px; }
  .hero { padding-bottom: 64px; margin-bottom: 64px; }
  .letter { padding-bottom: 64px; margin-bottom: 64px; }
  .hero__cover { max-width: 220px; }
  .letter .lede { font-size: 1.2rem; }
  .option { padding: 20px 0; }
  .submit__btn { width: 100%; justify-content: center; }
  .footer { margin-top: 80px; }
}
