:root {
  --color-orange: #ff6b4a;
  --color-pink: #d87ca5;
  --color-light-green: #d9e8b2;
  --color-turquoise: #42c9cb;
  --color-dark-blue: #24242c;
}

body {
  /* font-family: "Space Grotesk", sans-serif; */
  font-family: "IBM Plex Sans", sans-serif;
  background: #f8f8f8;
  color: var(--color-dark-blue);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

header,
footer {
  /* background: var(--color-dark-blue);
  color: white; */
  font-family: "Space Grotesk", sans-serif;
  padding: 10px 20px;

  background: linear-gradient(
    to right,
    var(--color-dark-blue),
    var(--color-pink)
  );

  color: white;
}

nav a {
  color: white;
  margin-right: 15px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

.hero {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}

.buy-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  font-family: "Space Grotesk", sans-serif;
}

.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px 25px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  /* transform: translateY(-3px); */
  filter: brightness(1.1);
}

/* .btn.individual {
  background: linear-gradient(45deg, var(--color-orange), var(--color-pink));
}

.btn.team {
  background: linear-gradient(
    45deg,
    var(--color-turquoise),
    var(--color-light-green)
  );
} */

.btn.individual {
  background: var(--color-turquoise);
  border-radius: 8px;
}

.btn.team {
  background: var(--color-turquoise);
  border-radius: 8px;
}

.btn span:first-child {
  font-size: 1rem; /* larger, main line */
  opacity: 1;
}

.btn span:last-child {
  font-size: 0.8rem; /* smaller, secondary line */
  opacity: 0.8;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 5px;
}

small {
  display: flex;
  justify-content: center;
}

/* Gallery Styles */

.center-image {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

/* Outer wrapper: allows horizontal scroll */
.gallery-wrapper {
  overflow-x: auto;
  padding: 0 1rem;
}

/* Inner container: force images to scroll in a row */
.demo-gallery {
  display: flex;
  gap: 1rem;
  padding: 2rem 0;
  width: max-content; /* key to trigger scroll even on desktop */
}

/* Each image: fixed large size, no shrinking */
.demo-gallery img {
  max-width: min(600px, 90vw); /* prevents overflow on small screens */
  height: auto;
  flex-shrink: 0; /* prevent squeezing */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Documentation Styles */

.docs-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 0;
  padding: 2rem;
}

.toc {
  position: sticky;
  top: 2rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
}

.toc h4 {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 600;
}

.toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: #333;
  text-decoration: none;
}
.toc a:hover {
  text-decoration: underline;
}

.doc-content {
  max-width: 100%; /* Changed from 800px to 100% */
  min-width: 0; /* Ensures it can shrink below its content width */
}

.doc-content a:not(.btn) {
  color: #d87ca5;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
}

.doc-content a:hover:not(.btn) {
  color: #ff6b4a;
  border-bottom-color: #ff6b4a;
  transform: translateY(-1px);
}

/* Add a breakpoint for intermediate screen sizes */
@media (max-width: 900px) {
  .docs-container {
    grid-template-columns: 200px 1fr; /* Shrink sidebar slightly */
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .docs-container {
    display: block;
    padding: 1rem;
  }

  .toc {
    position: static;
    margin-bottom: 1rem;
  }
}

/* Table styles */

/* Base table styling */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Header row */
table thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #ccc;
}

table th,
table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #ddd;
  vertical-align: top;
}

/* Zebra striping */
table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Prevent long text from breaking layout */
table td {
  word-break: break-word;
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.center-text {
  text-align: center;
}

@media (max-width: 768px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
  }

  td {
    border: none;
    padding: 0.25rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
    font-size: 0.85rem;
  }
  .center-text {
    text-align: left;
  }
}

.pro-badge {
  display: inline-block;
  background: #d87ca5; /* Or your pink shade */
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
  vertical-align: middle; /* better than baseline */
  line-height: 1;
}

/* Content styles */

.terms {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

main {
  margin: 0 auto;
  line-height: 1.6;
}

main h1,
main h2,
main h3 {
  margin-top: 2rem;
  font-weight: 600;
  line-height: 1.2;
}

main p,
main ul,
main li {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  main {
    padding: 1rem;
  }
}

/* Success Page Styles */
.success-container {
  max-width: 600px;
  text-align: center;
  background: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 2rem auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--color-turquoise);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: white;
  font-weight: bold;
}

.success-container h1 {
  color: var(--color-dark-blue);
  margin-bottom: 1rem;
  font-size: 2.2rem;
  font-weight: 600;
}

.success-container p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #555;
}

.next-steps {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: left;
}

.next-steps h3 {
  margin-top: 0;
  color: var(--color-dark-blue);
  font-size: 1.2rem;
}

.next-steps ul {
  margin: 0;
  padding-left: 1.2rem;
}

.next-steps li {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.btn.secondary {
  background: var(--color-pink);
}

/* Responsive adjustments for success page */
@media (max-width: 768px) {
  .success-container {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  .success-container h1 {
    font-size: 1.8rem;
  }

  .success-container p {
    font-size: 1rem;
  }
}
