/* Landing page and legal pages (shared layout, on top of sha.css) */

body.site {
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

/* Legal pages: content column with side gutters. */
.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Legal text column: 720px of text plus the side gutters. */
.wrap--narrow {
  max-width: 752px;
}

/* ---------- Landing page (body.landing, values from the design draft of 006) ---------- */

/* State flags are set on <html> by /js/landing.js before the first paint. */
.is-member .guest-only,
.signup-closed .signup-link,
html:not(.is-member) .member-only {
  display: none !important;
}

.landing-wrap {
  width: var(--page-width);
  margin-inline: auto;
}

.landing img {
  display: block;
  max-width: 100%;
}

.landing h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.45rem);
  line-height: 1.35;
}

.landing h3 {
  margin: 3px 0 8px;
  font-size: clamp(1.16rem, 1.7vw, 1.5rem);
  line-height: 1.45;
}

/* The large buttons of the landing page; shape and colours come from .btn in sha.css. */
.actions .btn,
.about-copy .btn {
  gap: 10px;
  min-height: 54px;
  padding: 0.72em 1.45em;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.45;
  letter-spacing: 0.05em;
}

/* Text for screen readers only; it takes no space and does not move its parent's layout. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hero-panel {
  padding-top: clamp(22px, 3.3vw, 50px);
}

.hero-title {
  padding: clamp(2.25rem, 4.15vw, 4.5rem) 1.25rem;
  border-radius: 10px;
  background: var(--rose) url('/img/landing/wellen-altrosa.webp') center / cover;
  text-align: center;
}

.hero-title h1 {
  font-size: clamp(2.75rem, 5.15vw, 4.6rem);
  font-weight: 700;
  line-height: 1.23;
}

.claim {
  margin-top: 0.38em;
  font-size: clamp(1.55rem, 3.65vw, 3.32rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero-copy {
  padding-block: clamp(1.75rem, 2.9vw, 3rem) clamp(1.8rem, 3vw, 3.1rem);
  text-align: center;
}

/* The second sentence is 49.1em wide in Poppins 400 with the letter-spacing of the body, so
   52em keeps it on one line at every font size and viewport wide enough for it; below that
   it wraps between words. The break before it is a <br> in the markup. */
.lead {
  max-width: 52em;
  margin-inline: auto;
  font-size: clamp(1rem, 1.48vw, 1.25rem);
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 1.55rem;
}

.actions .btn {
  min-width: min(14rem, 100%);
}

/* Mini demo (M3, see landing-demo.css); as wide as the picture in the draft. */
.demo {
  width: min(94%, 54rem);
  margin: 0 auto;
}

/* The box inside is .how in sha.css; here only the outer margin. */
.how {
  margin-block: clamp(2.25rem, 4.2vw, 4.5rem);
}

.about-copy p {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.8;
}

.about {
  display: grid;
  grid-template-columns: minmax(220px, 0.77fr) minmax(0, 1.55fr);
  align-items: start;
  gap: clamp(32px, 6vw, 86px);
  max-width: 77rem;
  padding-block: 1rem clamp(3rem, 5vw, 5.5rem);
}

.portrait {
  margin: 0;
  text-align: center;
}

.portrait img {
  width: min(100%, 21rem);
  height: auto;
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: 52% 44%;
}

.portrait figcaption {
  margin-top: 1.1rem;
  font-size: 1.15rem;
  font-weight: 500;
}

.portrait figcaption span {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 400;
}

.swiss-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.7rem;
  font-size: 0.9rem;
}

.about-copy h2 {
  margin-bottom: 22px;
}

.about-copy p + p {
  margin-top: 1.05rem;
}

.about-copy .btn {
  min-width: min(100%, 16rem);
  margin-top: 24px;
}

@media (max-width: 760px) {
  .demo {
    width: var(--page-width);
  }

  .hero-title {
    padding: 2.35rem 1rem;
  }

  .hero-copy {
    padding-block: 1.6rem 1.8rem;
  }

  .lead {
    line-height: 1.72;
  }

  .actions {
    gap: 9px;
    margin-top: 1.2rem;
  }

  .actions .btn {
    min-width: 0;
    min-height: 48px;
    padding-inline: 0.95rem;
    letter-spacing: 0.025em;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 40rem;
  }

  .portrait img {
    width: min(62vw, 15rem);
  }
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 16px 0 48px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
  line-height: 1.7;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

/* In the new design (body.site-design) the text has the size and spacing of the draft. */
.site-design .legal {
  padding-top: clamp(32px, 4vw, 56px);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.legal h1 {
  margin-bottom: 0.4em;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  color: var(--white);
}

.legal h2 {
  margin: 2.2em 0 0.6em;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: var(--white);
}

.legal p {
  margin: 0 0 1em;
}

.legal ul {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.legal li {
  margin-bottom: 0.4em;
}

.legal strong {
  color: var(--white);
}

.legal a {
  overflow-wrap: anywhere;
}
