/* ============================================================
   Choosing Maldives — Coming Soon
   Implementation of "Maldives Coming Soon.dc.html"
   Palette sampled from the Sun & Sea design system.
   ============================================================ */

:root {
  --ocean:        #0C3A45;  /* Ocean Deep   — page base / headings */
  --ink:          #102A30;  /* Ink          — input text */
  --ivory:        #FCF4E8;  /* Warm Ivory   — primary text on dark */
  --teal-400:     #2BB6C0;  /* Lagoon Turquoise — signature accent */
  --gold-400:     #E0A45A;  /* Golden Sand */
  --coral-500:    #EE8C66;  /* Sunset Coral — primary button */
  --coral-600:    #D96F47;  /* Coral hover */
}

* { box-sizing: border-box; }

/* Display-typed elements (flex/inline-flex) override the UA [hidden] rule,
   so enforce it — the form/confirm swap relies on toggling [hidden]. */
[hidden] { display: none !important; }

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.65;
  color: var(--ivory);
  background: var(--ocean);
}

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

/* ---------- background ---------- */
/* Base gradient evokes the Maldives palette and shows through if the
   photo asset isn't present; the real photo sits on top via the URL. */
.bg {
  position: absolute;
  inset: 0;
  background-color: var(--ocean);
  background-image:
    image-set(
      url('/assets/hero-atolls.webp') type('image/webp')
    ),
    radial-gradient(130% 90% at 72% 8%, rgba(224, 164, 90, 0.55) 0%, rgba(224, 164, 90, 0) 52%),
    radial-gradient(110% 80% at 18% 0%, rgba(220, 239, 240, 0.30) 0%, rgba(220, 239, 240, 0) 48%),
    radial-gradient(120% 75% at 50% 120%, rgba(43, 182, 192, 0.30) 0%, rgba(43, 182, 192, 0) 55%),
    linear-gradient(180deg, #1B6E73 0%, #0C3A45 46%, #082E37 100%);
  background-size: cover, auto, auto, auto, auto;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.18) contrast(1.04);
}

.scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.scrim--vertical {
  background: linear-gradient(180deg,
    rgba(12, 58, 69, 0.30) 0%,
    rgba(12, 58, 69, 0.20) 38%,
    rgba(12, 58, 69, 0.58) 100%);
}
.scrim--diagonal {
  background: linear-gradient(125deg,
    rgba(12, 58, 69, 0.40) 0%,
    rgba(12, 58, 69, 0.10) 45%,
    rgba(224, 164, 90, 0.14) 100%);
}

/* ---------- brand bar ---------- */
.brandbar {
  position: relative;
  z-index: 3;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 21px;
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(43, 182, 192, 0.22);
  border: 1px solid rgba(43, 182, 192, 0.5);
  padding: 0.45em 0.9em;
  border-radius: 999px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(43, 182, 192, 0.25);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(43, 182, 192, 0.25); }
  50%      { box-shadow: 0 0 0 7px rgba(43, 182, 192, 0.08); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.hero__inner {
  max-width: 680px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(43, 182, 192, 0.28);
  border: 1px solid rgba(43, 182, 192, 0.5);
  padding: 0.45em 1em;
  border-radius: 999px;
  margin-bottom: 26px;
}
.title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin: 0 0 20px;
  text-wrap: balance;
}
.lede {
  color: rgba(252, 244, 232, 0.92);
  font-size: clamp(1.125rem, 1.07rem + 0.3vw, 1.3125rem);
  margin: 0 auto 40px;
  max-width: 34rem;
  text-wrap: pretty;
}

/* ---------- countdown ---------- */
.countdown {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 42px;
}
.unit {
  min-width: 92px;
  background: rgba(252, 244, 232, 0.07);
  border: 1px solid rgba(252, 244, 232, 0.16);
  border-radius: 20px;
  padding: 18px 14px;
  backdrop-filter: blur(2px);
}
.unit__value {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  line-height: 1;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
}
.unit__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(252, 244, 232, 0.6);
  margin-top: 8px;
}

/* ---------- signup ---------- */
.signup {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 30rem;
  margin: 0 auto;
}
.signup__input {
  flex: 1 1 15rem;
  min-width: 0;
  border: 1px solid rgba(252, 244, 232, 0.28);
  border-radius: 999px;
  padding: 0.95em 1.25em;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: rgba(252, 244, 232, 0.94);
  color: var(--ink);
  outline: none;
}
.signup__input:focus-visible {
  box-shadow: 0 0 0 3px rgba(43, 182, 192, 0.55);
}
.signup__btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--coral-500);
  color: var(--ocean);          /* Ocean Deep on coral = 5.0:1 (AA) */
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(12, 58, 69, 0.3);
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease;
}
.signup__btn:hover  { background: var(--coral-600); }
.signup__btn:active { transform: translateY(1px); }
.signup__btn:focus-visible {
  outline: none;
  box-shadow: 0 8px 20px rgba(12, 58, 69, 0.3),
              0 0 0 3px rgba(43, 182, 192, 0.6);
}
.signup__note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: rgba(252, 244, 232, 0.55);
  margin: 16px 0 0;
}

/* ---------- confirmation ---------- */
.confirm {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(43, 182, 192, 0.16);
  border: 1px solid rgba(43, 182, 192, 0.5);
  border-radius: 999px;
  padding: 0.85em 1.4em;
}
.confirm__check {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--teal-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ocean);
  font-weight: 700;
  font-size: 13px;
}
.confirm span:last-child {
  font-size: 15px;
  color: var(--ivory);
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 3;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 32px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(252, 244, 232, 0.12);
}
.footer__copy {
  font-size: 12.5px;
  color: rgba(252, 244, 232, 0.7);
}
.footer__links {
  display: flex;
  gap: 22px;
}
.footer__links a {
  font-size: 13px;
  color: rgba(252, 244, 232, 0.78);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer__links a:hover { color: var(--ivory); }
.footer__tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(252, 244, 232, 0.5);
}

/* ---------- motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
