/*******************************
 * GLOBALS
 ******************************/
:root {
  --main-orange: #e04b1a;
  --faded-orange: #e75b2d;
  --green-grass: #89c540;
  --blue-air: #00bcd6;
  --basic-black: #111;
  --dark-grey: #36474f;
  --medium-grey: #d9dde0;
  --cool-grey: #f5f7f8;
}

section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
@media (max-width: 1024px) {
  section h1 {
    font-size: 2rem;
  }
}
@media (max-width: 480px) {
  section h1 {
    font-size: 1.5rem;
  }
}

/*******************************
 * BASE RESET
 ******************************/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Helvetica Neue", sans-serif;
  line-height: 1.6;
  background: #fff;
  color: var(--basic-black);
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
}
@media (max-width: 480px) {
  .container {
    width: 95%;
  }
}

/* Full height */
html,
body {
  height: 100%;
}
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
}

/*******************************
 * BUTTONS
 ******************************/
.btn {
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.btn-primary {
  border: none;
  background: var(--basic-black);
  color: #fff;
}
.btn-outline {
  border: 1px solid var(--basic-black);
  background: none;
}
@media (max-width: 768px) {
  .btn-primary {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .btn {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
}

/*******************************
 * LOGO HEADER & FOOTER
 ******************************/
.logo {
  font-weight: bold;
  line-height: normal;
}
.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--basic-black);
}
.logo img {
  height: 24px;
  width: auto;
}

/*******************************
 * HEADER
 ******************************/
.header {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/*******************************
 * FOOTER
 ******************************/
.footer {
  background: #f1f1f1;
  padding-top: 2rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer a {
  color: var(--basic-black);
  text-decoration: none;
}
.footer-content .miro-badge {
  padding-top: 2rem;
  line-height: normal;
}
.footer-content .miro-badge img {
  max-width: 80px;
}
.footer .subscript {
  font-size: 0.9rem;
}
.footer .links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer .links li {
  padding-bottom: 0.5rem;
}
.footer .links li:hover {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.footer h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-content .logo a {
    justify-content: center;
  }
}

/*******************************
 * LANDING PAGE
 ******************************/
/* Hero */
.hero {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2rem;
}
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }
}

.hero-text {
  flex: 1 1 300px;
}
.hero-text p {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Carousel */
.hero .screenshots {
  position: relative;
  padding: 1.5rem 0;
  border-radius: 6px;
}
.carousel-viewport {
  overflow: hidden;
  width: 100%;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-slide {
  width: 100%;
  flex-shrink: 0;
}
.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}
.carousel-slide .video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
}
.carousel-slide .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--dark-grey);
  color: #fff;
  border: none;
  padding: 0.3rem 1rem 0.7rem;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}
.carousel-arrow.left {
  left: -2rem;
}
.carousel-arrow.right {
  right: -2rem;
}
@media (max-width: 1024px) {
  .hero .screenshots {
    padding: 1rem 0;
  }
}
@media (max-width: 768px) {
  .carousel-arrow {
    padding: 0 0.7rem 0.3rem;
    font-size: 1.5rem;
  }
  .carousel-arrow.left {
    left: -1.5rem;
  }
  .carousel-arrow.right {
    right: -1.5rem;
  }
}
@media (max-width: 480px) {
  .carousel-arrow {
    font-size: 1rem;
  }
  .carousel-arrow.left {
    left: -1rem;
  }
  .carousel-arrow.right {
    right: -1rem;
  }
}

/* Call to action */
.call-to-action {
  flex: 1 1 200px;
  position: relative;
  padding-top: 4rem;

  display: flex;
  justify-content: center;
  align-items: center;
}
.call-to-action a {
  text-decoration: none;
  color: var(--basic-black);
  font-weight: bold;
}
.call-to-action a:hover {
  text-decoration: underline;
}
.call-to-action img {
  width: 200px;
  max-width: 100%;
  border-radius: 8px;
  padding-bottom: 0.8rem;
}
.call-to-action .image-wrapper {
  display: inline-block;
  text-align: center;
}

.call-to-action p {
  position: relative;
}
.call-to-action .free {
  display: inline-block;
  transform: rotate(14deg);
  position: absolute;
  bottom: 15px;
  right: -14px;
  font-style: italic;
  color: #d34618;
}
.call-to-action a:hover .free {
  text-decoration: none;
}

/* Features section */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}
.features-right,
.features-left {
  flex: 1 1 400px;
  background: #f8f8f8;
  padding: 1.5rem;
  border-radius: 6px;
}

.features-left {
  display: flex;
  flex-direction: column;
}
.features-content {
  flex-grow: 1;
}
.features-content ul {
  list-style: none;
  margin: 1rem 0 auto 0;
  font-size: 1.1rem;
}
.features-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}
.features-content li::before {
  content: "✔";
  font-size: 1rem;
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.6rem;
}
.features-left .performance {
  max-width: 410px;
  padding: 1rem 1rem 0;
  text-align: center;
  margin: auto;
}
@media (max-width: 768px) {
  .features {
    flex-direction: column;
  }
  .features-right,
  .features-left {
    padding: 1rem;
  }
}

.features-right h2 {
  margin-bottom: 1rem;
}
.features-right p {
  padding-bottom: 0.6rem;
  font-size: 1.1rem;
}
.features-right a {
  display: block;
  text-align: center;
}
.features-right img {
  width: 200px;
  transition: filter 0.3s ease;
}
.features-right img:hover {
  filter: brightness(1.1);
}

/* Why ToC section */
.why-toc {
  margin-top: 2rem;
  margin-bottom: 3rem;
  width: 100%;
  padding: 1.5rem;
  border-radius: 6px;
}
.why-toc p {
  font-size: 1.1rem;
  padding-bottom: 2rem;
}
.toc-benefits {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0.6rem;
}
.toc-benefits > div {
  flex: 1 1 auto;
  min-width: 160px;
  max-width: 240px;
  padding: 0.8rem;
  /* background-color: var(--cool-grey); */
  border: 2px solid var(--medium-grey);
  border-radius: 0.5rem;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: center;
  color: var(--dark-grey);
}
.toc-benefits > div:hover {
  border-color: #eaecee;
}
.toc-benefits img {
  display: block;
  margin: auto;
  height: 100px;
  padding-bottom: 1rem;
}
@media (max-width: 768px) {
  .toc-benefits {
    margin-top: 1rem;
  }
  .toc-benefits img {
    height: 80px;
  }
  .toc-benefits > div {
    flex: 1 1 0;
    font-size: 0.9rem;
    line-height: 1.2rem;
  }
}

/*******************************
 * SUPPORT PAGE
 ******************************/
/* Explainers section */
.support .explainers {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 2rem;
  margin-bottom: 4rem;
}
.support .explainer {
  flex: 1 1 calc(100% - 1rem);
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.support .explainer iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
  max-height: 250px;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .support .explainer {
    flex: 1 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
  }
}
@media (min-width: 768px) {
  .support .explainer {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

/* Contact form */
.support h1 {
  display: none;
}
.support form {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  margin-top: 2rem;
}
.support form > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.support form input {
  flex: 1 1 100%;
  min-width: 0;
}
.support form textarea {
  width: 100%;
  resize: vertical;
  font-family: inherit;
}
.support form input,
.support form textarea {
  font-size: 1rem;
  padding: 1rem;
  box-sizing: border-box;
  background-color: var(--cool-grey);
  border: none;
  border-radius: 6px;
}
.support form input:focus-visible,
.support form textarea:focus-visible {
  outline: 1px solid var(--medium-grey);
}
.support form .subscript {
  font-size: 0.9rem;
  color: var(--dark-grey);
}
.support form .subscript a {
  text-decoration: none;
}
.support form button {
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .support form input {
    flex: 1 1 calc(33.333% - 0.67rem);
  }
}

/* Screen reader */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Notification */
.toast-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  min-width: 300px;
  max-width: 90%;
  background-color: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 14px;
}
.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-notification.success {
  background-color: #2ecc71;
}
.toast-notification.error {
  background-color: #e74c3c;
}
.toast-notification .toast-close {
  margin-left: 12px;
  cursor: pointer;
  font-weight: bold;
  float: right;
}

/*******************************
 * PRIVACY & TERMS PAGES
 ******************************/
.privacy h2,
.terms h2 {
  margin-top: 1rem;
}
.privacy p,
.privacy ul,
.terms p,
.terms ul,
.terms ol {
  margin-bottom: 0.4rem;
}
.privacy ul,
.privacy ol,
.terms ul,
.terms ol {
  padding-left: 2em;
}

/*******************************
 * 404 page
 ******************************/
.four-oh-four h1 {
  margin-bottom: 2rem;
}
