/* Jovy coming-soon page. Tokens locked May 2026, see brand/brand-guidelines.md. */

@font-face {
  font-family: "Clash Display";
  src: url("/fonts/ClashDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("/fonts/ClashDisplay-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-v17-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-v17-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-v17-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --deep-plum: #4A2B4A;
  --plum-deep: #3A1F3A;
  --ink: #2A1A2A;
  --coral: #D97961;
  --coral-deep: #C05E45;
  --coral-light: #F18E75;
  --sage: #9DAE8F;
  --brick: #A53D2E;
  --lavender-wash: #F2EAF0;
  --lavender-deep: #E4D6E2;
  --warm-slate: #5A4F57;
  --cream: #FAF6F3;
  --paper: #FFFFFF;

  --font-display: "Clash Display", Inter, sans-serif;
  --font-body: "DM Sans", Inter, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--warm-slate);
  background-color: var(--lavender-wash);
  background-image:
    radial-gradient(640px 420px at 85% -8%, rgba(217, 121, 97, 0.10), transparent 70%),
    radial-gradient(720px 480px at 8% 108%, rgba(74, 43, 74, 0.08), transparent 70%);
  background-attachment: fixed;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.55;
}

.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;
}

/* Header / wordmark */

.site-header { padding: 2rem 1.5rem 0; }

.wordmark {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.3rem;
  text-decoration: none;
}
.wordmark-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--deep-plum);
}
.wordmark-o { color: var(--coral-light); }
.wordmark-sparkle {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--coral-light);
  margin-top: -0.1rem;
}

/* Hero */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 60rem;
  padding: 2.5rem 1.5rem 3rem;
}

.eyebrow {
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-slate);
}

.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  line-height: 1.08;
  color: var(--deep-plum);
  margin-top: 1rem;
  max-width: 18ch;
}
.pivot { color: var(--coral); }

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.6;
  max-width: 44rem;
  margin-top: 1.25rem;
}

/* Value points */

.value-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 50rem;
  margin-top: 2.25rem;
}

.value-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 2px 12px rgba(58, 31, 58, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(74, 43, 74, 0.08);
  color: var(--deep-plum);
  margin-bottom: 0.35rem;
}
.value-icon svg { width: 24px; height: 24px; }

.value-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--deep-plum);
}

.value-body { font-size: 0.95rem; }

/* Signup */

.signup {
  width: 100%;
  max-width: 34rem;
  margin-top: 2.25rem;
}

.signup-lede {
  font-size: 1.05rem;
  color: var(--ink);
}

.field-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

#email {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--lavender-deep);
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
#email::placeholder { color: var(--warm-slate); opacity: 0.65; }
#email:focus-visible {
  outline: none;
  border-color: var(--deep-plum);
  box-shadow: 0 0 0 3px rgba(74, 43, 74, 0.18);
}

#submit-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  background: var(--coral);
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
#submit-btn:hover {
  background: var(--coral-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(192, 94, 69, 0.28);
}
#submit-btn:active { transform: scale(0.98); }
#submit-btn:focus-visible {
  outline: 2px solid var(--deep-plum);
  outline-offset: 2px;
}
#submit-btn:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.form-error {
  color: var(--brick);
  font-size: 0.95rem;
  margin-top: 0.85rem;
}

.reassure {
  font-size: 0.85rem;
  margin-top: 0.85rem;
}

.confirmation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: var(--cream);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
  box-shadow: 0 2px 12px rgba(58, 31, 58, 0.07);
  text-align: left;
}
.confirmation[hidden] { display: none; }
.confirmation-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--sage);
}
.confirmation-text { color: var(--ink); font-size: 1rem; }

/* Footer */

.site-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  font-size: 0.85rem;
}
.site-footer a {
  color: var(--deep-plum);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--lavender-deep);
  transition: border-color 180ms var(--ease);
}
.site-footer a:hover { border-color: var(--coral); }
.site-footer a:focus-visible {
  outline: 2px solid var(--deep-plum);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Motion: restrained fade-up on load, honoring reduced motion */

.fade-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 280ms var(--ease) forwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; opacity: 1; transform: none; }
  #submit-btn, #email, .site-footer a { transition: none; }
  #submit-btn:hover { transform: none; }
}

/* Shorter desktop viewports: compress so the page stays one screen */

@media (min-width: 721px) and (max-height: 1000px) {
  .site-header { padding-top: 1.25rem; }
  .hero { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .headline { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-top: 0.75rem; }
  .lede { margin-top: 1rem; font-size: 1.05rem; }
  .value-points { margin-top: 1.75rem; }
  .value-card { padding: 1.1rem; }
  .value-icon { width: 42px; height: 42px; }
  .signup { margin-top: 1.75rem; }
  .field-row { margin-top: 1rem; }
  .site-footer { padding: 0.75rem 1.5rem 1.25rem; }
}

/* Responsive */

@media (max-width: 720px) {
  .hero { padding-top: 2rem; justify-content: flex-start; }
  .value-points { grid-template-columns: 1fr; max-width: 24rem; }
  .value-card {
    flex-direction: row;
    text-align: left;
    align-items: center;
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 1rem;
    row-gap: 0.15rem;
  }
  .value-icon { grid-row: 1 / 3; margin-bottom: 0; }
  .value-title { font-size: 1.1rem; }
  .field-row { flex-direction: column; }
  #submit-btn { padding: 0.95rem 1.6rem; }
}
