/* Funeral Home Solutions: coming-soon page styles */

:root {
  --brand-200: #b9e3ff;
  --brand-300: #89d1ff;
  --brand-400: #4db6ff;
  --brand-500: #0099ff;
  --brand-600: #0077d4;
  --brand-700: #005fa8;
  --ink-300: #b3b5ba;
  --ink-400: #808080;
  --ink-500: #5f6168;
  --ink-950: #101215;
  --success: #6ee7b7;
  --error: #fca5a5;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
}

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

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

body {
  background: var(--ink-950);
  color: #fff;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 3px;
}

/* ---------- page shell ---------- */
.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.bg__glow {
  position: absolute;
  top: -12rem;
  left: 50%;
  width: 70rem;
  height: 42rem;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: radial-gradient(
    closest-side,
    rgb(0 153 255 / 0.22),
    transparent
  );
}
.bg__glow--corner {
  top: auto;
  left: auto;
  right: -12rem;
  bottom: -12rem;
  width: 30rem;
  height: 30rem;
  transform: none;
  background: radial-gradient(
    closest-side,
    rgb(0 153 255 / 0.12),
    transparent
  );
}
.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      to right,
      rgb(255 255 255 / 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgb(255 255 255 / 0.035) 1px,
      transparent 1px
    );
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(
    ellipse at top,
    #000,
    transparent 70%
  );
  mask-image: radial-gradient(ellipse at top, #000, transparent 70%);
}
.bg__mark {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 46rem;
  max-width: none;
  transform: translate(-50%, -42%);
  opacity: 0.04;
  filter: grayscale(1) invert(1);
  user-select: none;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }
}

/* ---------- main ---------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 3.5rem 4rem;
  text-align: center;
}

.logo {
  display: block;
  width: clamp(260px, 44vw, 460px);
  height: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 3rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px rgb(77 182 255 / 0.3);
  color: var(--brand-200);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.badge__dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
}
.badge__dot::before,
.badge__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--brand-400);
}
.badge__dot::before {
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.6;
}

h1 {
  max-width: 56rem;
  margin: 1.75rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.accent {
  background: linear-gradient(
    to right,
    var(--brand-400),
    var(--brand-200)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--ink-300);
  font-size: 1.125rem;
  line-height: 1.65;
}

/* ---------- signup ---------- */
.signup {
  width: 100%;
  max-width: 28rem;
  margin-top: 2.5rem;
}
.signup__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.2s;
}
.signup__field:focus-within {
  box-shadow: inset 0 0 0 1px rgb(77 182 255 / 0.6);
}
@media (min-width: 640px) {
  .signup__field {
    flex-direction: row;
    border-radius: 9999px;
  }
}
.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1rem;
}
.signup input[type="email"]::placeholder {
  color: var(--ink-500);
}
.signup input[type="email"]:focus {
  outline: none;
}
.signup button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 9999px;
  background: var(--brand-600);
  box-shadow: 0 8px 24px -8px rgb(0 119 212 / 0.6);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.signup button:hover {
  background: var(--brand-700);
}
.signup button[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.signup__status {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  color: var(--ink-400);
  font-size: 0.875rem;
}
.signup__status[data-tone="success"] {
  color: var(--success);
}
.signup__status[data-tone="error"] {
  color: var(--error);
}
.signup__captcha {
  display: flex;
  justify-content: center;
}
.signup__captcha:not(:empty) {
  margin-top: 0.75rem;
}
/* Honeypot: hidden from people, visible to naive bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: var(--ink-400);
  font-size: 0.875rem;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-block: 1.5rem;
}
.footer__copy {
  margin: 0;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: #fff;
}
footer svg {
  color: var(--brand-400);
}
@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- motion ---------- */
.fade-up {
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.d1 {
  animation-delay: 100ms;
}
.d2 {
  animation-delay: 200ms;
}
.d3 {
  animation-delay: 300ms;
}
.d4 {
  animation-delay: 400ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ping {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
