/* nitecap.app palette */
:root {
  --plum-deep: #4A0737;
  --plum-muted: #6C4463;
  --pink-soft: #F7B2C5;
  --blue-pale: #D6DFF7;
  --lavender: #E7D6F7;
  --white: #fff;
  --black: #1a1a1a;
}

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

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--plum-deep);
  background: var(--lavender);
  min-height: 100vh;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 3rem;
  overflow: hidden;
}

/* Decorative strips (palette) */
.strip {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 12vw;
  max-width: 6rem;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.strip--1 {
  left: 0;
  background: var(--plum-deep);
}

.strip--2 {
  left: 12vw;
  background: var(--plum-muted);
}

.strip--3 {
  left: 24vw;
  background: var(--pink-soft);
}

.strip--4 {
  right: 24vw;
  background: var(--blue-pale);
}

.strip--5 {
  right: 12vw;
  background: var(--lavender);
}

@media (min-width: 60rem) {
  .strip {
    width: 6rem;
    max-width: none;
  }

  .strip--1 {
    left: 0;
  }

  .strip--2 {
    left: 6rem;
  }

  .strip--3 {
    left: 12rem;
  }

  .strip--4 {
    right: 12rem;
  }

  .strip--5 {
    right: 6rem;
  }
}

.header {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  margin-bottom: 3rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--plum-deep);
}

.logo--link {
  text-decoration: none;
  color: inherit;
}

.logo--link:hover {
  color: var(--plum-deep);
  text-decoration: underline;
}

.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  text-align: center;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--plum-deep);
  letter-spacing: -0.02em;
}

.hero__tagline {
  margin: 0 0 2.5rem;
  font-size: 1.125rem;
  color: var(--plum-muted);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.signup {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.signup__fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.signup__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.signup__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--plum-deep);
}

.signup__required {
  color: var(--pink-soft);
}

.signup__input,
.signup__select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--plum-deep);
  background: var(--white);
  border: 2px solid var(--blue-pale);
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup__input::placeholder {
  color: var(--plum-muted);
  opacity: 0.8;
}

.signup__input:hover,
.signup__select:hover {
  border-color: var(--pink-soft);
}

.signup__input:focus,
.signup__select:focus {
  outline: none;
  border-color: var(--plum-muted);
  box-shadow: 0 0 0 3px rgba(108, 68, 99, 0.2);
}

.signup__input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: var(--pink-soft);
}

.signup__select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236C4463' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.signup__optional-note {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--plum-muted);
  background: var(--blue-pale);
  border-radius: 0.5rem;
  text-align: center;
}

.signup__fields--optional {
  margin-top: 0.5rem;
}

.signup__checkgroup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.25rem;
}

.signup__checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--plum-deep);
  cursor: pointer;
}

.signup__checkbox {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--plum-deep);
  cursor: pointer;
}

/* Form must be fully hidden when success is shown (override .signup display) */
.signup[hidden],
#signup-form[hidden] {
  display: none !important;
}

.signup-success {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--pink-soft);
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(74, 7, 55, 0.08);
}

.signup-success[hidden] {
  display: none !important;
}

.signup-success__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  background: var(--plum-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
}

.signup-success__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--plum-deep);
  letter-spacing: -0.02em;
}

.signup-success__text {
  margin: 0;
  font-size: 1.125rem;
  color: var(--plum-muted);
  max-width: 20rem;
}

.signup__submit {
  padding: 0.875rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--plum-deep);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.signup__submit:hover {
  background: var(--plum-muted);
}

.signup__submit:active {
  transform: scale(0.98);
}

.signup__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.signup__message {
  margin: 0;
  min-height: 1.5em;
  font-size: 0.9375rem;
  color: var(--plum-muted);
}

.signup__message.success {
  color: var(--plum-deep);
  font-weight: 500;
}

.signup__message.error {
  color: var(--plum-deep);
}

.share {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(74, 7, 55, 0.12);
  text-align: center;
}

.share__label {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--plum-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.share__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  align-items: center;
}

.share__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--plum-deep);
  text-decoration: none;
  padding: 0.5em 0.875em;
  border-radius: 0.5rem;
  background: var(--white);
  border: 1px solid rgba(74, 7, 55, 0.2);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.share__link:hover {
  background: var(--lavender);
  border-color: var(--plum-muted);
  color: var(--plum-deep);
}

.share__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.share__icon svg {
  width: 100%;
  height: 100%;
}

.share__link--facebook {
  border-left: 3px solid #1877f2;
}

.share__link--facebook .share__icon {
  color: #1877f2;
}

.share__link--whatsapp {
  border-left: 3px solid #25d366;
}

.share__link--whatsapp .share__icon {
  color: #25d366;
}

.share__link--instagram {
  border-left: 3px solid #e4405f;
}

.share__link--instagram .share__icon {
  color: #e4405f;
}

/* Privacy page */
.privacy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  padding: 0 0 2rem;
}

.privacy__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--plum-deep);
  letter-spacing: -0.02em;
}

.privacy__lead {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--plum-deep);
  line-height: 1.4;
}

.privacy__body {
  margin: 0 0 2rem;
}

.privacy__body p {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  color: var(--plum-muted);
  line-height: 1.6;
}

.privacy__body p:last-child {
  margin-bottom: 0;
}

.privacy__back {
  margin: 0;
}

.privacy__back a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--plum-deep);
  text-decoration: none;
}

.privacy__back a:hover {
  text-decoration: underline;
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 2rem;
}

.footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--plum-muted);
}

.footer__copy a {
  color: inherit;
  text-decoration: none;
}

.footer__copy a:hover {
  text-decoration: underline;
  color: var(--plum-deep);
}