/* Remindel — base styles */

@font-face {
  font-family: 'Merriweather';
  src: url('../assets/fonts/Merriweather-VariableFont_opsz,wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('../assets/fonts/sf-pro-display-light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('../assets/fonts/SFPRODISPLAYREGULAR.OTF') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'SF Pro Display', system-ui, sans-serif;
}

/* Hero section */
.hero {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100%;
  background-image: url('../assets/logo-short-dark.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100vw auto;
  opacity: 0.02;
  pointer-events: none;
}

.hero__wrapper {
  position: relative;
  width: 100%;
  max-width: 37.5rem; /* 600px */
  padding: 2rem 1rem;
  text-align: center;
}

.hero__title {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 5rem;   /* 80px */
  line-height: 6rem; /* 96px */
  text-align: center;
  margin: 0 0 1.5rem; /* 24px */
}

.hero__desc {
  font-family: 'SF Pro Display', system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.5rem;   /* 24px */
  line-height: 2rem;   /* 32px */
  text-align: center;
  margin: 0 0 3rem;
}

.hero__success[hidden] {
  display: none !important;
}

.hero__success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #EAEAEA;
  background: #F7F7F7;
  margin: 0 0 3rem;
}

.hero__success-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #100F0D;
  color: white;
}

.hero__success-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hero__success-text {
  margin: 0;
  font-family: 'SF Pro Display', system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 2rem;
}

.hero__error {
  font-family: 'SF Pro Display', system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 2rem;
  text-align: center;
  margin: 0 0 3rem;
  color: #c00;
}

.hero__form[hidden] {
  display: none !important;
}

.hero__form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__input-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  width: 100%;
  max-width: 100%;
}

.hero__input,
.hero__btn {
  border-radius: 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-family: 'SF Pro Display', system-ui, sans-serif;
}

.hero__input {
  flex: 1;
  min-width: 0;
  background: #F7F7F7;
  border: 1px solid #EAEAEA;
  color: #100F0D;
  font-weight: 300;
}

.hero__input:focus {
  outline: none;
  border-color: #100F0D;
}

.hero__input::placeholder {
  color: #969696;
}

.hero__btn {
  font-weight: 400;
  background: #100F0D;
  color: white;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.hero__btn:hover {
  background: #2a2927;
}

.hero__checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5rem;
  margin-bottom: 3rem;
  cursor: pointer;
}

.hero__checkbox {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.375rem;
  border: 1px solid #EAEAEA;
  appearance: none;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero__checkbox:focus {
  outline: none;
  border-color: #100F0D;
}

.hero__checkbox:checked {
  background: #100F0D;
  border-color: #100F0D;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 5l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.75rem;
}

.hero__policy-link {
  text-decoration: underline;
  color: inherit;
}

.hero__badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.hero__badge {
  display: block;
  line-height: 0;
}

.hero__badge img {
  height: 2rem;
  width: auto;
  display: block;
}

.hero__footer {
  position: absolute;
  bottom: 1.5rem;
  font-family: 'SF Pro Display', system-ui, sans-serif;
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem;
  opacity: 0.6;
  color: inherit;
  text-decoration: none;
}

.hero__footer:hover {
  opacity: 0.9;
}

.hero__footer--left {
  left: 1.5rem;
}

.hero__footer--right {
  right: 1.5rem;
}

/* Mobile */
@media (max-width: 48rem) {
  .hero__bg {
    background-size: auto 80vh;
  }

  .hero__title {
    font-size: 3rem;
    line-height: 3.5rem; /* 56px */
    margin-bottom: 1rem;
  }

  .hero__desc {
    font-size: 1rem;
    line-height: 1.25rem; /* 20px */
    margin-bottom: 2.5rem;
  }

  .hero__input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__input,
  .hero__btn {
    width: 100%;
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .hero__checkbox-label {
    font-size: 0.875rem; /* 14px */
    line-height: 1.25rem; /* 20px */
    margin-bottom: 2.5rem;
  }

  .hero__success {
    margin-bottom: 2.5rem;
    padding: 1rem;
  }

  .hero__success-text {
    font-size: 1rem;
    line-height: 1.25rem;
  }

  .hero__badge img {
    height: 1.5rem;
  }
}

/* Legal pages (Imprint, Privacy) */
.legal {
  padding: 2rem 1.5rem;
  max-width: 37.5rem;
  margin: 0 auto;
}

.legal__content {
  width: 100%;
}

.legal__back {
  display: inline-block;
  font-family: 'SF Pro Display', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  margin-bottom: 1.5rem;
  color: inherit;
  text-decoration: none;
}

.legal__back:hover {
  text-decoration: underline;
}

.legal h1 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 5rem;
  line-height: 6rem;
  text-align: left;
  margin: 0 0 1.5rem;
}

.legal p {
  font-family: 'SF Pro Display', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  margin: 0 0 1rem;
}

.legal a {
  color: inherit;
  text-decoration: underline;
}

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

@media (max-width: 48rem) {
  .legal h1 {
    font-size: 3rem;
    line-height: 3.5rem;
    margin-bottom: 1rem;
  }
}
