/* whatsonyourmind.now — Launch Version 1.1
   Compact mobile-first refinement.
   One question. Nothing competes with it.
*/

:root {
  --bg: #050403;
  --cream: #f1e6d4;
  --cream-soft: rgba(241, 230, 212, 0.72);
  --gold: #e4c184;
  --gold-line: rgba(228, 193, 132, 0.32);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--cream);
  background:
    radial-gradient(circle at 50% 17%, rgba(228, 193, 132, 0.075), transparent 220px),
    radial-gradient(circle at 50% 54%, rgba(228, 193, 132, 0.04), transparent 360px),
    linear-gradient(180deg, #040403 0%, var(--bg) 50%, #030302 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  overflow: hidden;
}

.page {
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(22px, env(safe-area-inset-top))
    20px
    max(22px, env(safe-area-inset-bottom));
}

.screen {
  display: none;
  width: min(88vw, 660px);
  text-align: center;
  animation: arrive 900ms ease both;
}

.screen.active {
  display: block;
}

.presence {
  width: clamp(70px, 12vw, 106px);
  height: clamp(70px, 12vw, 106px);
  margin: 0 auto clamp(30px, 5vh, 58px);
  border-radius: 50%;
  border: clamp(2.5px, 0.45vw, 4.5px) solid rgba(241, 230, 212, 0.84);
  position: relative;
  box-shadow:
    0 0 20px rgba(228, 193, 132, 0.19),
    0 0 70px rgba(228, 193, 132, 0.085);
  animation: breathe 9.5s ease-in-out infinite;
}

.presence::before,
.presence::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.presence::before {
  inset: -4px;
  border: 1px solid rgba(241, 230, 212, 0.34);
  transform: rotate(16deg);
  clip-path: polygon(0 0, 94% 0, 100% 100%, 8% 100%);
}

.presence::after {
  inset: 5px;
  border: 1px solid rgba(228, 193, 132, 0.20);
  transform: rotate(-15deg);
  clip-path: polygon(6% 0, 100% 5%, 94% 100%, 0 95%);
}

.presence.small {
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.063em;
  color: rgba(241, 230, 212, 0.96);
  text-shadow:
    0 0 14px rgba(228, 193, 132, 0.09),
    0 14px 38px rgba(0, 0, 0, 0.50);
}

h1 {
  font-size: clamp(3.55rem, 9.2vw, 6.65rem);
  line-height: 0.91;
  margin-bottom: clamp(30px, 4.8vh, 48px);
}

h2 {
  font-size: clamp(3.25rem, 9vw, 6rem);
  line-height: 0.95;
  margin-bottom: 22px;
}

.thought-form {
  position: relative;
  width: 100%;
}

textarea {
  width: 100%;
  min-height: clamp(118px, 17vh, 170px);
  resize: none;
  border: 1px solid var(--gold-line);
  border-radius: clamp(24px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.01);
  color: rgba(241, 230, 212, 0.9);
  outline: none;
  padding:
    clamp(24px, 4vw, 38px)
    clamp(78px, 11vw, 112px)
    clamp(24px, 4vw, 38px)
    clamp(28px, 4vw, 46px);
  font:
    300
    clamp(1.05rem, 2.2vw, 1.38rem) / 1.5
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: 0.01em;
  box-shadow:
    0 0 28px rgba(228, 193, 132, 0.035),
    inset 0 0 40px rgba(228, 193, 132, 0.014);
  transition:
    border-color 900ms ease,
    box-shadow 900ms ease,
    background 900ms ease;
}

textarea::placeholder {
  color: rgba(241, 230, 212, 0.50);
  letter-spacing: 0.23em;
}

textarea:focus {
  border-color: rgba(228, 193, 132, 0.48);
  box-shadow:
    0 0 40px rgba(228, 193, 132, 0.06),
    inset 0 0 44px rgba(228, 193, 132, 0.022);
}

.send-orb {
  position: absolute;
  right: clamp(20px, 3.6vw, 34px);
  bottom: clamp(20px, 3.6vw, 34px);
  width: clamp(44px, 7vw, 58px);
  height: clamp(44px, 7vw, 58px);
  border-radius: 50%;
  border: 1px solid rgba(228, 193, 132, 0.52);
  background:
    radial-gradient(circle, rgba(228, 193, 132, 0.14), transparent 66%),
    rgba(0, 0, 0, 0.18);
  box-shadow:
    0 0 22px rgba(228, 193, 132, 0.10),
    inset 0 0 14px rgba(228, 193, 132, 0.035);
  cursor: pointer;
  animation: breatheSmall 9.5s ease-in-out infinite;
  display: grid;
  place-items: center;
}

.send-orb span {
  width: 34%;
  height: 34%;
  border-radius: 50%;
  border: 1px solid rgba(241, 230, 212, 0.42);
}

.send-orb:hover,
.send-orb:focus-visible {
  border-color: rgba(228, 193, 132, 0.70);
}

.send-orb:active {
  transform: scale(0.96);
}

.form-status {
  min-height: 1.25rem;
  margin: 14px 0 0;
  color: rgba(241, 230, 212, 0.58);
  font:
    300
    0.92rem
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: 0.01em;
}

.send-orb[disabled] {
  cursor: default;
  opacity: 0.45;
}

.heartbeat {
  margin: clamp(34px, 5vh, 58px) 0 0;
  font-size: clamp(1rem, 2.2vw, 1.34rem);
  color: rgba(241, 230, 212, 0.82);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.thank-you-copy {
  max-width: 540px;
  margin: 0 auto 32px;
}

.thank-you-copy p {
  margin: 8px auto;
  color: var(--cream-soft);
  font-size: clamp(1rem, 2.4vw, 1.32rem);
  line-height: 1.55;
  font-weight: 300;
}

.thank-you-copy strong {
  color: rgba(241, 230, 212, 0.95);
  font-weight: 400;
}

.again-button {
  margin-top: 20px;
  border: 1px solid rgba(228, 193, 132, 0.28);
  background: rgba(255, 255, 255, 0.012);
  color: rgba(241, 230, 212, 0.78);
  border-radius: 999px;
  padding: 12px 20px;
  font:
    300
    0.95rem
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  cursor: pointer;
}

.again-button:hover,
.again-button:focus-visible {
  border-color: rgba(228, 193, 132, 0.42);
}

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

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 20px rgba(228, 193, 132, 0.18),
      0 0 68px rgba(228, 193, 132, 0.075);
  }

  50% {
    transform: scale(1.026);
    box-shadow:
      0 0 30px rgba(228, 193, 132, 0.28),
      0 0 98px rgba(228, 193, 132, 0.11);
  }
}

@keyframes breatheSmall {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }

  50% {
    transform: scale(1.04);
    opacity: 0.92;
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 540px) {
  .page {
    align-items: center;
    padding:
      max(18px, env(safe-area-inset-top))
      18px
      max(18px, env(safe-area-inset-bottom));
  }

  .screen {
    width: min(92vw, 430px);
  }

  .presence {
    width: clamp(66px, 17vw, 82px);
    height: clamp(66px, 17vw, 82px);
    margin-bottom: clamp(28px, 4.5vh, 40px);
  }

  h1 {
    font-size: clamp(3rem, 13vw, 4.9rem);
    margin-bottom: clamp(28px, 4.2vh, 38px);
  }

  textarea {
    min-height: clamp(112px, 18vh, 142px);
  }

  .heartbeat {
    margin-top: clamp(30px, 4.5vh, 44px);
  }
}

@media (max-height: 700px) {
  .presence {
    width: 64px;
    height: 64px;
    margin-bottom: 26px;
  }

  h1 {
    font-size: clamp(2.85rem, 11.5vw, 4.3rem);
    margin-bottom: 26px;
  }

  textarea {
    min-height: 106px;
  }

  .heartbeat {
    margin-top: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
