html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  max-width: 100%;
}

/* tastyAI — global */
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: "neue-haas-grotesk-display", sans-serif;
}

body {
  margin: 0;
  background-color: #0a0a0a;
  color: #f5f4f1;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-break {
  display: none;
}

.mobile-only {
  display: none;
}

/* Mobile base (390px reference) */
:root {
  --bg-black: #0a0a0a;
  --bg-off: #f5f4f1;
  --mid-grey: #888888;
  --btn-grey: #d9d9d9;
  --content-max: 1212px;
  --pad-x: 28px;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-top: 0;
  padding-left: 80px;
  height: 90px;
  padding-bottom: 0;
  box-sizing: border-box;
  background-color: var(--bg-black);
  border: 0;
}

.site-nav__logo {
  position: relative;
  left: 0;
  top: 0;
  transform: none;
}

.site-nav__logo img {
  width: auto !important;
  height: 41px !important;
}

/* Section 01 — Manifesto */
.section-manifesto {
  background-color: var(--bg-black);
  padding-top: 140px;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  padding-bottom: 80px;
  border-top: 0;
}

.section-manifesto__inner {
  max-width: var(--content-max);
}

.manifesto-headline {
  margin: 0 0 24px;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 15px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.01em;
  color: #f5f4f1;
  text-transform: uppercase;
}

.championing-headline {
  margin: 60px 0 24px;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 15px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.01em;
  color: #f5f4f1;
  text-transform: uppercase;
}

.section-team .championing-headline {
  color: #0a0a0a;
}

.manifesto-body {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: #f5f4f1;
}

.signup-heading,
.signup-body,
.site-footer {
  color: #f5f4f1;
}

.manifesto-body + .manifesto-body {
  margin-top: 1em;
}

.manifesto-body strong {
  font-weight: 400;
}

.section-manifesto .manifesto-body:last-of-type strong {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* Section 02 — Team */
.section-team {
  background-color: var(--bg-off);
  padding: 80px var(--pad-x) 80px;
  margin: 0;
  border: 0;
}

.section-team__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.team-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 11px;
  margin-bottom: 40px;
}

.team-grid img {
  width: 313px;
  height: 313px;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.photo-row {
  pointer-events: auto;
}

.photo-row a {
  pointer-events: auto;
}

.photo-row img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.team-copy {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: #0a0a0a;
}

.section-team p {
  color: #0a0a0a;
}

.team-copy strong {
  font-weight: 700;
}

/* Section 03 — Signup */
.section-signup {
  background-color: var(--bg-black);
  min-height: calc(100vh - 90px);
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  padding-top: 30px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
}

.section-signup__inner {
  max-width: var(--content-max);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.signup-content {
  flex: 1 0 auto;
}

.signup-headline {
  margin: 0 0 16px;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  color: #f5f4f1;
}

.signup-subheadline {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #f5f4f1;
  margin: 0 0 16px;
}

.signup-line {
  margin: 0 0 8px;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
  color: #f5f4f1;
}

.signup-line:last-of-type {
  margin-bottom: 32px;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 310px;
  margin-bottom: 48px;
}

.signup-form input[type="email"] {
  width: min(310px, 100%);
  height: 52px;
  padding: 0 12px;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 14px !important;
  font-weight: 400;
  color: #f5f4f1;
  background-color: var(--bg-black);
  border: 1px solid #f5f4f1;
  border-radius: 0;
}

.signup-form input[type="email"]::placeholder {
  color: var(--mid-grey);
}

.signup-form .join-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(310px, 100%);
  height: 52px;
  margin-top: 0;
  text-align: left !important;
  padding-left: 16px !important;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 14px !important;
  font-weight: 700;
  color: #0a0a0a;
  background-color: var(--btn-grey);
  border: 1px solid #f5f4f1;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.signup-form .join-btn:hover {
  text-decoration: none;
}

.signup-form:has(input[type="email"]:valid:not(:placeholder-shown)) .join-btn:not(.active) {
  background-color: #f5f4f1;
  border-color: #000000;
}

.signup-form button.active,
.signup-form .join-btn.active {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.section-signup__footer {
  margin-top: auto;
  padding-top: 40px;
}

.footer-line {
  margin: 0;
  font-size: 7.5px;
  font-weight: 300;
  line-height: 1.4;
  color: #f5f4f1;
  letter-spacing: 0.05em;
}

.footer-copy {
  margin-top: 60px;
  margin-bottom: 0;
  font-size: 7.5px;
  font-weight: 300;
  color: #f5f4f1;
}

/* Confirmation page */
.page-confirmation {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-black);
}

.confirmation-main {
  flex: 1;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  padding-top: 125px;
  padding-bottom: 48px;
}

.page-confirmation .manifesto-headline {
  text-transform: none;
}

.page-confirmation .section-signup__footer {
  margin-top: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  padding-bottom: 48px;
}

/* Desktop — min-width 768px */
@media (min-width: 768px) {
  :root {
    --pad-x: 80px;
  }

  .site-nav {
    height: 90px;
    padding-bottom: 20px;
  }

  .site-nav__logo img {
    width: auto !important;
    height: 41px !important;
  }

  .manifesto-body {
    font-size: 30px;
  }

  .manifesto-headline {
    font-size: 32px;
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 700;
    font-style: normal;
  }

  .championing-headline {
    font-size: 32px;
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 700;
    font-style: normal;
  }

  .section-manifesto .manifesto-body:last-of-type strong {
    font-weight: 700;
  }

  .section-team {
    padding-left: 80px;
    padding-right: 80px;
  }

  .team-grid {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: space-between;
    margin-bottom: 48px;
  }

  .team-grid img {
    width: 362px;
    height: 362px;
    max-width: none;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center center;
  }

  .team-copy {
    font-size: 30px;
  }

  .section-manifesto {
    padding-left: 80px;
    padding-top: 140px;
  }

  .section-signup {
    min-height: calc(100vh - 90px);
    padding-left: 80px;
  }

  .signup-headline {
    font-size: 30px;
    font-weight: 700;
  }

  .signup-subheadline {
    font-size: 30px;
    font-weight: 700;
  }

  .signup-line {
    font-size: 30px;
    font-weight: 400;
  }

  .signup-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
    max-width: none;
    margin-bottom: 64px;
  }

  .signup-form input[type="email"] {
    width: 100%;
    height: 62px;
    max-width: min(496px, calc(100vw - 160px - 178px));
    flex-shrink: 1;
    font-size: 30px !important;
  }

  .signup-form .join-btn {
    width: 178px;
    height: 62px;
    margin-top: 0;
    margin-left: 0;
    flex-shrink: 0;
    font-size: 30px !important;
  }

  .footer-line {
    font-size: 18px;
  }

  .footer-copy {
    font-size: 18px;
  }

  .page-confirmation .section-signup__footer {
    padding-left: 80px;
  }

  .confirmation-main {
    padding-left: 80px;
  }
}

@media (max-width: 768px) {
  .mobile-break {
    display: inline;
  }

  .site-nav {
    padding-left: 24px;
  }

  .section-manifesto {
    padding-top: 100px;
  }

  .manifesto-headline {
    font-size: 19px;
  }

  .championing-headline {
    font-size: 19px;
    margin-top: 30px;
  }

  .manifesto-body {
    font-size: 16px;
  }

  .section-team {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .section-team img {
    width: 100% !important;
    height: auto !important;
  }

  .section-team .team-grid.photo-row.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .section-signup {
    min-height: unset;
    scroll-margin-top: 0;
    padding-top: 80px;
    padding-bottom: 8px !important;
  }

  .signup-headline {
    font-size: 20px;
  }

  .signup-subheadline {
    font-size: 20px;
  }

  .signup-form {
    width: 100%;
    flex-direction: column;
  }

  .signup-form input,
  .signup-form button,
  .signup-form .join-btn {
    font-size: 14px !important;
  }

  .signup-form button {
    text-align: left;
    padding-left: 16px;
  }

  .site-footer {
    padding-top: 16px !important;
    padding-bottom: 24px !important;
  }

  .footer-line {
    font-size: 14px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline;
  }
}

@media (max-width: 768px) {
  body {
    font-family: "neue-haas-grotesk-text", sans-serif;
  }
  h1, h2, h3, h4 {
    font-family: "neue-haas-grotesk-display", sans-serif;
  }
  p.manifesto-body,
  p.team-copy,
  p.signup-line,
  p.signup-subheadline,
  p.footer-line,
  p.footer-copy {
    font-family: "neue-haas-grotesk-text", sans-serif;
  }
  .manifesto-body strong {
    font-family: "neue-haas-grotesk-text", sans-serif;
    font-weight: 700;
  }
}
