/* =========================================================
   Well Common — landing page styles
   Palette: Baby blue dominant with magenta accents
   ========================================================= */

:root {
  --blue-deep: #4a7fb8;
  --blue-soft: #c5dcf0;
  --blue-mist: #e3eef8;
  --magenta: #d6386f;
  --magenta-glow: #fde0eb;
  --paper: #ffffff;
  --ink: #1d2a40;
  --ink-soft: #4d5b73;
  --ink-mute: #7e8aa0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--blue-mist);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(214, 56, 111, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(142, 184, 224, 0.18) 0%, transparent 45%);
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 540px;
  width: 100%;
  text-align: left;
}

/* ---------- Logo ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 56px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--blue-deep);
  letter-spacing: -0.5px;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border: 2px solid var(--blue-deep);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.logo-mark::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--magenta);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(214, 56, 111, 0.4);
}

/* ---------- Headline ---------- */
h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 24px;
}

h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--blue-deep);
  position: relative;
  z-index: 1;
}

h1 em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--magenta);
  z-index: -1;
  opacity: 0.4;
  transform: skewX(-3deg);
}

/* ---------- Lead + focus areas ---------- */
.lead {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.5;
}

.focus-areas {
  font-style: italic;
  font-weight: 700;
  color: var(--magenta);
  font-size: 15px;
  letter-spacing: 0.4px;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ---------- Email form (pill) ---------- */
.email-form {
  display: flex;
  gap: 8px;
  background: var(--paper);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(74, 127, 184, 0.2);
  box-shadow: 0 8px 32px rgba(74, 127, 184, 0.1);
  margin-bottom: 14px;
}

.email-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 22px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}

.email-form input::placeholder {
  color: var(--ink-mute);
}

.email-form button {
  background: var(--blue-deep);
  color: var(--paper);
  border: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.email-form button:hover {
  background: var(--ink);
}

.email-form button:active {
  transform: scale(0.98);
}

.form-note {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 48px;
}

/* ---------- How it works ---------- */
.how {
  padding-top: 32px;
  border-top: 1px solid rgba(74, 127, 184, 0.18);
}

.how-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--magenta);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.flow {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.flow strong {
  color: var(--magenta);
  font-weight: 700;
  font-size: 19px;
  display: block;
  margin-top: 12px;
  margin-bottom: 2px;
}

.flow strong:first-child {
  margin-top: 0;
}

.problem-prompt-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}

.how .email-form {
  margin-bottom: 10px;
}

/* ---------- Why / Yes / Get involved sections ---------- */
.why-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(74, 127, 184, 0.18);
}

.why-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--magenta);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.why-headline {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.4px;
  margin-bottom: 14px;
  line-height: 1.2;
}

.why-body {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.why-body strong {
  color: var(--magenta);
  font-weight: 700;
}

.why-cta {
  font-size: 18px;
  font-weight: 700;
  color: var(--magenta);
  margin-top: 16px;
  letter-spacing: -0.2px;
}

/* ---------- Subscription tiers ---------- */
.tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.tier {
  background: var(--paper);
  border: 1px solid rgba(74, 127, 184, 0.18);
  border-radius: 14px;
  padding: 18px 20px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tier:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(74, 127, 184, 0.12);
  border-color: rgba(74, 127, 184, 0.4);
}

.tier-highlight {
  border-color: var(--magenta);
  background: linear-gradient(180deg, var(--paper) 0%, rgba(253, 224, 235, 0.45) 100%);
}

.tier-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--blue-deep);
  letter-spacing: -0.3px;
}

.tier-highlight .tier-name {
  color: var(--magenta);
}

.tier-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
  margin-bottom: 8px;
}

.tier-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- Toast ---------- */
.success-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--blue-deep);
  color: var(--paper);
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(74, 127, 184, 0.4);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  border: 2px solid var(--magenta);
}

.success-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ---------- Animations ---------- */
.fade-in {
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .success-toast {
    animation: none;
    transition: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 540px) {
  .logo { margin-bottom: 40px; }
  .email-form { flex-direction: column; border-radius: 16px; padding: 10px; }
  .email-form input { padding: 14px 16px; }
  .email-form button { width: 100%; padding: 14px; }
  .form-note { margin-bottom: 36px; }
}
