/*
CSS Reset from https://www.joshwcomeau.com/css/custom-css-reset/
*/
/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

/*
  2. Remove default margin
*/
* {
  margin: 0;
}

/*
  Typographic tweaks!
  3. Add accessible line-height
  4. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/*
  6. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
  font: inherit;
}

/*
  7. Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/*
  8. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

/* Plasmidsaurus */

:root {
  --brand-green: #28a745;
  --brand-light-grey-blue: #d8e6e6;
  --brand-offwhite: #edeff1;
  --brand-black: #000000;
  --font-rubik: "Rubik";
  --font-rubik-one: "Rubik One";
  --font-inter: "Inter";
  --content-max-width: 1000px;
}

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

a:hover {
  text-decoration: underline;
}

body {
  font-family: var(--font-rubik);
  font-size: 16px;
  line-height: 19px;
  font-weight: 600;
}

body.landing-page {
  overflow-x: hidden;
  background-color: var(--brand-green);
}

a.button {
  white-space: nowrap;
  display: inline-block;
  padding: 10px 30px 10px 30px;
  border-radius: 5px;
}

a.button:hover {
  text-decoration: none;
}

a.button-large {
  white-space: nowrap;
  display: inline-block;
  padding: 23px 80px 23px 80px;
  text-transform: uppercase;
  border-radius: 10px;
}

a.button-large:hover {
  text-decoration: none;
}

.button-white {
  background: var(--brand-offwhite);
}

.button-black {
  background: var(--brand-black);
  color: var(--brand-offwhite);
}

.button-outline {
  border: 2px solid var(--brand-black);
}
/* Navbar */
.landing-navbar {
  width: 100%;
  height: 100px;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: end;
}

.navbar-links {
  display: flex;
  gap: 20px;
}

.navbar-buttons {
  display: flex;
  gap: 20px;
}

/* Dropdown Container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: none;
  float: left;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  text-align: left;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
}

/* Dropdown Links */
.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.25rem 1.5rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.dropdown-item:first-child {
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
}

.dropdown-item:last-child {
  border-bottom-right-radius: calc(0.25rem - 1px);
  border-bottom-left-radius: calc(0.25rem - 1px);
}

.dropdown-item:hover, .dropdown-item:focus {
  color: #16181b;
  text-decoration: none;
  background-color: #f8f9fa;
}

.dropdown-item.active, .dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #007bff;
}

.dropdown-item.disabled, .dropdown-item:disabled {
  color: #6c757d;
  pointer-events: none;
  background-color: transparent;
}

/* Hover Effects */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Header */
header {
  background: url(/static/hero-plasmid.svg), var(--brand-green);
  background-size: 1800px 1800px;
  background-repeat: no-repeat;
  background-position: -1100px -500px;
}

header, footer, body > section {
  padding: 0 20px 0 20px;
}

header .plasmidsaurus-logo {
  width: 186px;
  height: 140px;
  margin-bottom: 70px;
}

h1.main-title {
  font-family: var(--font-rubik);
  color: var(--brand-offwhite);
  text-transform: uppercase;
  font-size: 80px;
  font-weight: 800;
  line-height: 80px;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 30px;
}

h2.subtitle {
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 60px;
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
}

.landing-header-wrap {
  height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.landing-hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Tweet Testimonials */
.landing-tweet-testimonials {
  background: var(--brand-light-grey-blue);
  padding: 60px 20px 60px 20px;
  position: relative;
  max-width: 100vw;
  overflow: hidden;
}

.landing-tweet-testimonials h2 {
  text-align: center;
  line-height: 30px;
}

.landing-tweet-testimonials span {
  text-align: center;
}

.landing-risks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
  text-align: center;
}

.landing-risks .tweet-wrapper {
  min-height: 500px;
}

.landing-risks figure.tweet {
  max-width: var(--content-max-width);
  padding: 20px;
  border-radius: 10px;
  background: white;
  box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.10);
  margin-bottom: 60px;
  position: relative;
}

.landing-risks figure.tweet img {
  width: 100%;
}

.tweet-wall {
  position: absolute;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  height: 500px;
  gap: 20px;
  top: 20px;
}

.tweet-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tweet-wall img {
  width: 280px;
  height: auto;
  padding: 10px;
  background: white;
  border-radius: 10px;
  opacity: 0.6;
}

.landing-selling-point-list {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 70px;
  text-align: center;
}

.landing-selling-point-icon {
  min-width: 100px;
  height: 100px;
  border-radius: 50px;
  background: var(--brand-green);
}

.landing-selling-point-list > * {
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* design, build, test strip */

.landing-design-build-test {
  background: var(--brand-black);
  color: var(--brand-green);
  text-transform: uppercase;
  height: 100px;
  display: flex;
  gap: 20px;
  overflow: hidden;
  align-items: center;
}

.landing-8bit-dino {
  /* TODO */
  background: url(/static/plasmidsaurus-dino-green.png);
  background-size: 60px 37px;
  min-width: 60px;
  height: 37px;
}

/* core value props */

.landing-core-value-prop {
  padding: 60px 20px 80px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: var(--content-max-width);
  flex: 1;
  margin: 0 auto;
}

.core-value-prop-list {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.core-value-prop {
  display: flex;
  flex-direction: column;
  width: 220px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  align-items: center;
}

.core-value-prop h2 {
  text-transform: uppercase;
  font-size: 22px;
  display: block;
  font-weight: 800;
  height: 40px;
  white-space: nowrap;
}

.hero-testimonial {
  border-radius: 10px;
  background: var(--brand-light-grey-blue);
  box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 45px 90px 45px 90px;
  width: auto;
  margin: 0 auto;
}

.hero-testimonial h1 {
  font-size: 30px;
  font-weight: 600;
  line-height: 35px;
  margin-bottom: 45px;
}

.hero-testimonial .author {
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
}

.hero-testimonial .job-title {
  font-size: 14px;
  font-weight: 500;
}

.landing-verify-and-document {
  background: var(--brand-light-grey-blue);
  padding: 90px 20px 90px 20px;
}

/* Verify and document... */

.landing-verify-and-document h2 {
  text-align: center;
  margin-bottom: 60px;
  line-height: 30px;
}

.landing-diagrams {
  margin: 0 auto;
  max-width: var(--content-max-width);
  display: flex;
  gap: 30px;

  font-family: var(--font-inter);
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
}

.landing-diagrams figure {
  flex: 1;
  flex-direction: column;
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-diagrams figure .diagram {
  background-size: contain;
  width: 100%;
  height: 400px;

  background-repeat: no-repeat;
  background-position: center center;
}

.landing-diagrams figcaption {
  font-family: var(--font-inter);
  font-size: 15px;
  font-weight: 600;
  line-height: 30px;
}

.plasmid_01c {
  background-image: url(/static/plasmid_01c.png);
}

.plasmid_02c {
  background-image: url(/static/plasmid_02c.png);
}

.plasmid_02c_1 {
  background-image: url(/static/plasmid_02c_1.png);
}

.plasmid_02c_2 {
  background-image: url(/static/plasmid_02c_2.png);
}


.landing-why-use-plasmidsaurus {
  background: var(--brand-green);
  padding: 50px 20px 50px 20px;
}

.landing-why-use-plasmidsaurus a.button {
  padding: 20px 40px 20px 40px;
  text-transform: uppercase;
}

.landing-why-use-plasmidsaurus .center-container {
  position: relative;
  align-items: center;
}

.landing-why-use-plasmidsaurus .plasmidsaurus-logo {
  position: absolute;
  width: 147px;
  height: 110px;
  margin-left: -167px;
}

.landing-why-use-plasmidsaurus h2 {
  font-size: 35px;
  font-weight: 700;
  line-height: 40px;
}

.landing-why-use-plasmidsaurus p {
  font-family: var(--font-inter);
  font-size: 15px;
  font-weight: 600;
  line-height: 30px;
}

.center-container {
  display: flex;
  gap: 20px;

  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
}

.center-container > * {
  flex: 1;
}

.button-group {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Sequence anything */

.landing-sequence-anything {
  padding: 100px 20px 100px 20px;
  background: white;
}

.landing-sequence-anything .center-container {
  flex-direction: column;
  gap: 100px;
}

.sequence-block {
  display: flex;
}

.sequence-block > * {
  flex: 1;
}

.sequence-target {
  display: block;
}

.sequence {
  font-family: var(--font-rubik-one);
  font-size: 50px;
  font-weight: 400;
  line-height: 60px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .sequence {
    font-size: 40px;
    line-height: 45px;
  }
}

.sequence-block h3 {
  margin-bottom: 30px;
  line-height: 30px;
}

.sequence-block p {
  font-family: var(--font-inter);
  font-size: 15px;
  font-weight: 600;
  line-height: 30px;
}

.sequence-plasmids {
  color: black;
}

.sequence-plasmids:hover {
  color: var(--brand-green);
}

/* Footer */

footer {
  background: var(--brand-green);
  padding: 200px 50px 50px 50px;
  color: var(--brand-offwhite);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  gap: 20px;

  font-family: var(--font-rubik);
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 60px;
  text-transform: uppercase;
}

footer .landing-8bit-dino {
  background: url(/static/plasmidsaurus-dino-white.png);
  background-size: 80px 50px;
  min-width: 80px;
  height: 50px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logos {
  display: flex;
  gap: 5px;
}


/* Mobile layout */
@media (max-width: 768px) {
  header {
    background-size: 1000px 1000px;
    background-repeat: no-repeat;
    background-position: -600px -300px;
  }

  .landing-navbar {
    height: auto;
    padding-top: 20px;
  }

  .navbar-links {
    display: none;
  }

  .landing-header-wrap {
    height: auto;
    padding: 100px 10px 100px 10px;
  }

  h1.main-title {
    font-size: 40px;
    line-height: 40px;
  }

  h2.subtitle {
    font-size: 20px;
    line-height: 30px;
  }

  .landing-hero-buttons {
    flex-direction: column;
  }

  .landing-tweet-testimonials {
    padding: 60px 20px 60px 20px;
  }

  .tweet-column img {
    display: none;
  }

  .tweet-column img:first-child{
    display: block;
  }

  .landing-selling-point-list {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 0;
  }

  .landing-selling-point-list>* {
    flex-direction: row;
    width: auto;
    text-align: left;
  }

  .landing-core-value-prop {
    padding: 100px 0 50px 0;
  }

  .core-value-prop-list {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .hero-testimonial {
    margin: 0 20px 0 20px;
    padding: 20px 10px 20px 10px;
  }

  .hero-testimonial h1 {
    font-size: 20px;
    line-height: 25px;
    font-weight: 500;
  }

  .landing-diagrams {
    flex-direction: column;
    gap: 60px;
  }

  .landing-verify-and-document {
    padding: 90px 20px 90px 20px;
  }

  .landing-why-use-plasmidsaurus .center-container {
    flex-direction: column;
    padding: 25px 20px 25px 20px;
  }

  .landing-why-use-plasmidsaurus .button-group {
    flex-direction: column;
  }

  .landing-sequence-anything {
    padding: 25px 20px 20px 20px;
  }

  .landing-sequence-anything .center-container {
    gap: 50px;
  }

  .landing-diagrams figure {
    display: flex;
    flex-direction: row;
    gap: 50px;
  }

  .landing-diagrams figure >*{
    flex: 1;
  }

  .landing-diagrams figure .diagram {
    background-size: contain;
    width: 100vw;
    height: 300px;
  }

  .landing-diagrams figure ul {
    padding-left: 0;
  }

  .sequence {
    font-size: 40px;
    line-height: 50px;
  }

  .sequence-block {
    flex-direction: column;
  }

  .sequence-block h3 {
    margin-bottom: 20px;
  }

  .sequence-target {
    display: inline;
  }

  footer {
    padding: 50px 25px 25px 25px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .footer-left {
    font-size: 20px;
    line-height: 25px;
  }

  .footer-right {
    justify-content: space-between;
  }

  .landing-why-use-plasmidsaurus .plasmidsaurus-logo {
    display: none;
  }
}

/* TODO: Prevent over-scroll */