.logo img {
  width: 150px;
  height: auto;
}

section#hero .background:has(img, video)::before {
  background: linear-gradient(to bottom right, hsla(204, 56%, 0%, 0.9), hsl(209, 0%, 25%));
}

#hero {
  height: calc(100vh - 8rem);
}

@media screen and (max-width: 500px) {
  #hero .content > *:not(ul, header, a) {
    margin-top: 4rem;
  }
}

@media screen and (max-width: 500px) {
  #hero {
    height: calc(90vh - 5.5rem);
  }
}
#hero h1 {
  font-size: 64px;
}

section #accent {
  inset: 50px 50px 0;
}

section #accent > * {
  opacity: 0.125;
  background: transparent;
  background-image: radial-gradient(circle at center, var(--brand) 0.15rem, transparent 0);
  background-size: 20px 20px;
  background-repeat: round;
  background-position: 20px 20px;
}

section #accent > *.hl {
  opacity: 0.25;
  background: transparent;
  background-image: radial-gradient(circle at center, var(--accent) 0.15rem, transparent 0);
  background-size: 20px 20px;
  background-repeat: round;
  background-position: 20px 20px;
}

nav .content ul {
  gap: 1rem;
  justify-content: center;
}
@media screen and (max-width: 500px) {
  nav .content ul li:nth-child(n+7) {
    display: none;
  }
}

nav .content ul .logo {
  margin-right: auto;
}

.success,
.error {
  width: auto !important;
  text-align: center;
  padding: 1rem;
  border-radius: var(--br);
}

.success {
  color: hsl(107, 75%, 25%);
  border: 1px solid hsl(107, 75%, 50%);
  background: hsla(107, 75%, 50%, 0.05);
}

.error {
  color: hsl(0, 75%, 45%);
  border: 1px solid hsl(0, 75%, 50%);
  background: hsla(0, 75%, 50%, 0.05);
}

body section:not(#hero):first-of-type,
body footer:not(#hero):first-of-type {
  padding-top: 7rem;
}
@media screen and (max-width: 500px) {
  body section:not(#hero):first-of-type,
  body footer:not(#hero):first-of-type {
    padding-top: 1.5rem;
  }
}

body:not(.home) nav {
  background: var(--accent-75);
}
body:not(.home) nav li,
body:not(.home) nav .logo,
body:not(.home) nav .social svg {
  color: var(--text);
  stroke: var(--text);
}

section#products {
  background: var(--accent);
}
section#products .cards {
  justify-content: initial;
}
@media screen and (max-width: 500px) {
  section#products .cards {
    gap: 0.75rem;
  }
}
section#products .card {
  flex: 0 0 900px;
  border: 10px solid var(--text);
  justify-content: flex-start;
  box-sizing: border-box;
}
@media screen and (max-width: 500px) {
  section#products .card {
    padding: 0;
  }
}
@media screen and (max-width: 500px) {
  section#products .card {
    flex: 0 0 90vw;
  }
}
section#products .card .cd_image {
  position: absolute;
  inset: 0;
}
section#products .card .cd_content {
  padding: 3rem;
}
@media screen and (max-width: 500px) {
  section#products .card .cd_content {
    padding: 0.75rem;
  }
}
section#products .card .cd_content h3 {
  font-size: 2rem;
}

section#products .card .cd_content a {
  color: #fff;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

section#products .card .cd_content a span {
  color: #fff;
  font-size: 1.5rem;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration: underline;
}

section#products .card .cd_content a .label {
  background: var(--brand);
  /* color: #fff; */
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1;
  margin: auto 0;
}

section#products .card .cd_content .container {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

section#products .card .cd_content p {
  display: flex;
}

section#products .card .cd_content {
  height: auto;
}

section#press {
  background: light-dark(var(--text-05), var(--background-05));
}
section#press .container:has(.card) {
  flex-direction: column;
  max-width: 900px;
}
@media screen and (max-width: 500px) {
  section#press .container:has(.card) {
    gap: 0.75rem;
  }
}
section#press .container:has(.card) .card {
  max-height: 200px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem 0.75rem;
}
@media screen and (max-width: 500px) {
  section#press .container:has(.card) .card {
    grid-template-columns: 1fr 1fr;
  }
}
section#press .container:has(.card) .card .cd_image img {
  height: 100%;
}
section#press .container:has(.card) .card .cd_content {
  padding: 0.75rem 0;
}
section#press .container:has(.card) .card .cd_content date {
  position: relative;
}

footer {
  background: light-dark(var(--text-05), var(--background-05));
}

form legend {
  font-size: 16px;
  margin-bottom: 0.25rem;
}

form [class*=question] {
  margin-top: 1.5rem;
}

form .field.radio .options {
  flex-direction: column;
  border: none;
}

form .field.radio label {
  font-size: var(--m);
  position: relative;
  display: flex;
  width: 100%;
  padding: 0 0.25rem;
  inset: 0;
  text-align: left;
  cursor: pointer;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.5rem;
}

form .field.radio input {
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 16px;
  padding: 0 8px;
  border: 0;
  background: #ddd;
  border-radius: 100px;
  transition-duration: 200ms;
  align-self: center;
  appearance: none;
  position: relative;
  display: inline-block;
  height: 1.55rem;
  width: 45px;
  vertical-align: middle;
  border-radius: 2rem;
}

form .field.radio input::before {
  content: "";
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  background: #fff;
  border-radius: 1.2rem;
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
  transition: 0.25s linear transform;
  transform: translateX(0rem);
}

form .terms {
  margin-top: 1rem;
}

form .field:has(input[type=radio]) label:has(input:checked) {
  font-weight: 500;
  color: inherit;
  background: none;
  border-radius: 4px;
}

form .field.radio input::before {
  content: "";
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  background: #fff;
  border-radius: 1.2rem;
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
  transition: 0.25s linear transform;
  transform: translateX(0rem);
}

form .field.radio input:checked::before {
  left: unset;
  right: 0.15rem;
}

form .field.radio input:checked {
  background: var(--accent);
}

form .form-legend {
  margin-top: 1rem;
}

body.scrolled:has(section > .background) nav {
  color: var(--text);
}
body.scrolled:has(section > .background) nav .logo {
  color: var(--text);
}
body.scrolled:has(section > .background) nav svg {
  stroke: var(--text);
}

.button {
  color: var(--text);
  stroke: var(--text);
}

.card {
  flex: 0 0 350px;
}
.card .cd_image {
  border-radius: 0;
}

section#clients img {
  filter: grayscale(1);
}