@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@300;400;500;600;700&display=swap');

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

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

body {
  background: #000;
  color: #fff;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

a {
  color: inherit;
}

.app {
  min-height: 100%;
  width: 100%;
  background: #000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20vh 1.5rem 3rem;
  position: relative;
}

@media (min-width: 768px) {
  .app {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.shell {
  width: 100%;
  max-width: 72rem;
}

.font-serif {
  font-family: Cormorant, serif;
}

/* Header */
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.logo {
  display: flex;
  align-items: baseline;
  margin-left: -0.25rem;
  font-family: Cormorant, serif;
}

.logo-co {
  font-size: clamp(3.75rem, 8vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1;
}

@media (min-width: 768px) {
  .logo-co {
    font-size: 4.5rem;
  }
}

.logo-create {
  font-size: clamp(3.75rem, 8vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  animation: logoColors 8s linear infinite;
}

@media (min-width: 768px) {
  .logo-create {
    font-size: 4.5rem;
  }
}

@keyframes logoColors {
  0% {
    color: #0066ff;
  }
  25% {
    color: #00cc66;
  }
  50% {
    color: #ff6633;
  }
  75% {
    color: #ffcc00;
  }
  100% {
    color: #0066ff;
  }
}

.menu-trigger {
  color: #fff;
  margin-top: 0.5rem;
  transition: opacity 0.2s;
}

.menu-trigger:hover {
  opacity: 0.7;
}

/* Side menu */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 20rem;
  max-width: 85vw;
  background: #000;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 50;
  padding: 4rem 3rem;
  font-family: Cormorant, serif;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.side-menu.is-open {
  transform: translateX(0);
}

.side-menu-close {
  position: absolute;
  top: 2rem;
  left: 2rem;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  transition: opacity 0.2s;
}

.side-menu-close:hover {
  opacity: 0.7;
}

.side-nav {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.side-nav a {
  display: block;
  font-size: 1.875rem;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.side-nav a:hover {
  opacity: 0.7;
}

.lang-row {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: #fff;
}

.lang-toggle span.muted {
  opacity: 0.3;
}

.lang-toggle span.active {
  opacity: 1;
}

/* Pages */
.page {
  display: none;
}

.page.is-active {
  display: block;
}

/* Sign up layout */
.signup-layout {
  display: flex;
  flex-direction: column;
  min-height: 70vh;
}

@media (min-width: 768px) {
  .signup-layout {
    flex-direction: row;
  }
}

.signup-col-form {
  flex: 1;
  font-family: Cormorant, serif;
}

@media (min-width: 768px) {
  .signup-col-form {
    padding-right: 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }
}

.signup-col-aside {
  flex: 1;
  font-family: Cormorant, serif;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .signup-col-aside {
    margin-top: 0;
    padding-left: 3rem;
  }
}

.signup-aside-inner {
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .signup-aside-inner {
    text-align: left;
  }
}

.headline {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  color: #fff;
}

.subline {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin: 0 0 3rem;
  max-width: 32rem;
  opacity: 0.7;
  color: #fff;
}

.form-block {
  max-width: 32rem;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field-email {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  font-family: Cormorant, serif;
}

.field-email::placeholder {
  color: #fff;
  opacity: 0.3;
}

.field-email:focus {
  outline: none;
}

.privacy-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.privacy-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.privacy-check {
  appearance: none;
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex: 0 0 1rem;
  border: 1px solid #fff;
  background: #000;
  cursor: pointer;
  position: relative;
}

.privacy-check:checked {
  background: #fff;
}

.privacy-check:checked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9' fill='none'%3E%3Cpath d='M1 4L4.5 7.5L11 1' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center;
  opacity: 1;
}

.privacy-text {
  font-size: 0.875rem;
  opacity: 0.7;
  color: #fff;
  font-family: Cormorant, serif;
}

.privacy-link-row {
  margin-top: 0.2rem;
  margin-left: calc(1rem + 0.75rem);
}

.privacy-link {
  text-decoration: underline;
  font-size: 0.875rem;
  opacity: 0.7;
  color: #fff;
  font-family: Cormorant, serif;
}

.privacy-link:hover {
  opacity: 1;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  font-family: Cormorant, serif;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition:
    background 0.2s,
    color 0.2s,
    opacity 0.2s;
}

.btn-submit:hover:not(:disabled) {
  background: #000;
  color: #fff;
}

.btn-submit:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-submit:disabled:hover {
  background: #fff;
  color: #000;
}

.btn-submit.is-busy {
  cursor: wait;
}

.signup-error {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #ff8a8a;
  font-family: Cormorant, serif;
}

.success-title {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
  color: #fff;
}

.success-body {
  font-size: 1rem;
  line-height: 1.625;
  opacity: 0.7;
  color: #fff;
  margin: 0;
  max-width: 32rem;
}

.summary-line1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 300;
  color: #fff;
  margin: 0 0 1.5rem;
  line-height: 1.15;
}

.summary-line2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 300;
  opacity: 0.7;
  color: #fff;
  margin: 0;
}

.hidden {
  display: none !important;
}

/* About */
.about-wrap {
  max-width: 42rem;
  font-family: Cormorant, serif;
}

.about-wrap .about-title {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 1.5rem;
}

.about-wrap .about-text {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.6;
  font-weight: 300;
  opacity: 0.85;
  color: #fff;
  margin: 0 0 2rem;
  max-width: 40rem;
}

.about-wrap .about-lead {
  font-size: 1.125rem;
  font-weight: 300;
  opacity: 0.7;
  color: #fff;
  margin: 0 0 1.5rem;
}

.about-email {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 300;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.about-email:hover {
  opacity: 0.7;
}
