/* ------------------------------------------------------------------ *
   Elicitate landing — "dreamy sky + meadow" treatment.
   Hero photo is an AI-generated sky→wildflower-meadow background;
   handwritten (Caveat) headline, frosted-glass nav + feature strip,
   spiral-notepad checklist, black pill CTA. Email capture preserved.
 * ------------------------------------------------------------------ */

:root {
  --ink: #1f2733;
  --ink-soft: #5b6675;
  --paper: #fffdf6;
  --note-ink: #33405c;
  --note-title: #2b3a55;
  --check: #2e9e6b;
  --black: #12141b;
  --black-press: #20242f;
  --sky: #cfe7f6;

  --display: 'Caveat', 'Segoe Script', cursive;
  --body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1180px;
  --glass: rgba(255, 255, 255, 0.17);
  --glass-bd: rgba(255, 255, 255, 0.45);
  --text-shadow: 0 2px 14px rgba(24, 44, 74, 0.28), 0 1px 2px rgba(24, 44, 74, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--sky);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 3px solid #2b6cb0;
  outline-offset: 2px;
  border-radius: 6px;
}

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

/* ---------- black pill CTA (shared) ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: var(--black);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  padding: 15px 26px;
  box-shadow: 0 10px 26px rgba(20, 34, 58, 0.28);
  transition:
    transform 0.22s cubic-bezier(0.3, 0.8, 0.4, 1),
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}
.cta:hover {
  transform: translateY(-2px);
  background: var(--black-press);
  box-shadow: 0 16px 34px rgba(20, 34, 58, 0.34);
}
.cta:active {
  transform: translateY(0);
}
.cta__spark {
  color: #ffe98a;
  font-size: 15px;
}
.cta:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* ---------- hero screen ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2vw, 26px);
  background: url('/assets/hero-bg.jpg') center / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(130% 92% at 50% 40%, rgba(22, 42, 72, 0.3), rgba(22, 42, 72, 0) 58%),
    linear-gradient(180deg, rgba(22, 42, 72, 0.22), rgba(22, 42, 72, 0) 26%);
}
.hero > * {
  position: relative;
  z-index: 1;
}

/* ---------- nav ---------- */
.nav {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 6px 4px;
}
.nav__brand {
  justify-self: start;
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  text-decoration: none;
  text-shadow: var(--text-shadow);
}
.nav__pill {
  justify-self: center;
  display: inline-flex;
  gap: 2px;
  padding: 6px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-bd);
  border-radius: 999px;
}
.nav__pill a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}
.nav__pill a:hover {
  background: rgba(255, 255, 255, 0.24);
}
.nav__login {
  justify-self: end;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 6px;
  text-shadow: var(--text-shadow);
}
.nav__login:hover {
  text-decoration: underline;
}

/* ---------- hero body ---------- */
.hero__body {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 0;
}
.hero__copy {
  max-width: 720px;
}
.hero__title {
  font-family: var(--display);
  font-weight: 700;
  color: #fff;
  font-size: clamp(50px, 9vw, 104px);
  line-height: 0.98;
  letter-spacing: 0;
  margin: 0;
  text-shadow: var(--text-shadow);
}
.hero__sub {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 500;
  color: #fff;
  max-width: 44ch;
  margin: 20px auto 28px;
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(24, 44, 74, 0.3);
}

/* ---------- spiral notepad ---------- */
.pad {
  position: absolute;
  right: 0;
  bottom: 7%;
  width: min(300px, 34%);
  transform: rotate(3deg);
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 24px 22px 26px;
  box-shadow: 0 22px 46px rgba(18, 40, 70, 0.26);
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 33px,
    rgba(120, 140, 170, 0.16) 34px
  );
  background-position: 0 54px;
}
.pad__rings {
  position: absolute;
  top: -9px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
}
.pad__rings span {
  width: 11px;
  height: 17px;
  border-radius: 6px;
  background: #e7ebf2;
  border: 1.5px solid #b6bdca;
}
.pad__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 27px;
  color: var(--note-title);
  margin: 4px 0 12px;
}
.pad__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.15;
  color: var(--note-ink);
}
.pad__list li {
  display: flex;
  align-items: center;
  gap: 11px;
}
.tick {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  color: var(--check);
  border: 2px solid var(--check);
  border-radius: 6px;
}
.pad__draft {
  font-weight: 700;
  color: var(--note-title);
}

/* ---------- frosted feature strip ---------- */
.features {
  list-style: none;
  margin: 0 auto;
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(18px, 2.2vw, 24px) clamp(20px, 3vw, 36px);
  background: var(--glass);
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
  border: 1px solid var(--glass-bd);
  border-radius: 20px;
  color: #fff;
}
.feature {
  display: grid;
  gap: 4px;
  align-content: start;
}
.feature__icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  stroke-width: 1.6;
  margin-bottom: 6px;
}
.feature h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-shadow: var(--text-shadow);
}
.feature p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- signup ---------- */
.signup {
  display: grid;
  place-items: center;
  padding: clamp(56px, 9vw, 112px) 20px;
  background: linear-gradient(180deg, #e7f3fb 0%, #f4faff 55%, #ffffff 100%);
}
.signup__card {
  width: 100%;
  max-width: 540px;
  text-align: center;
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 24px;
  padding: clamp(30px, 4vw, 46px);
  box-shadow: 0 22px 54px rgba(40, 70, 110, 0.12);
}
.signup__card h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 46px);
  color: var(--note-title);
  margin: 0;
}
.signup__lede {
  margin: 10px 0 24px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}
#signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
#email {
  flex: 1 1 240px;
  min-width: 0;
  padding: 15px 18px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #d7dde6;
  border-radius: 999px;
}
#email::placeholder {
  color: #97a1ae;
}
.status {
  flex-basis: 100%;
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 500;
  min-height: 1.2em;
  color: var(--ink-soft);
}
.status.ok {
  color: var(--check);
}
.status.err {
  color: #c0392b;
}

/* ---------- footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 22px clamp(18px, 4vw, 40px);
  background: #fff;
  border-top: 1px solid #eef1f5;
  color: #6b7480;
  font-size: 14px;
}
.foot p {
  margin: 0;
}
.muted {
  opacity: 0.7;
}

/* ---------- entrance motion ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes rise-pad {
  from {
    opacity: 0;
    transform: rotate(3deg) translateY(18px);
  }
  to {
    opacity: 1;
    transform: rotate(3deg) translateY(0);
  }
}
.hero__copy {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.features {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both;
}
.pad {
  animation: rise-pad 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s both;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__body {
    padding: 24px 0 12px;
  }
  .pad {
    position: static;
    width: min(300px, 84%);
    margin: 30px auto 0;
    transform: rotate(-2deg);
  }
  .features {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  .feature {
    justify-items: center;
  }
}

@media (max-width: 640px) {
  .nav {
    grid-template-columns: auto 1fr;
  }
  .nav__pill {
    display: none;
  }
  .nav__login {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .pad {
    transform: rotate(3deg);
  }
}
