/* ─── 404 Error page ─── */
.error-page {
  text-align: center;
  padding: 20px 24px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-page__title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 200px;
  font-weight: 700;
  letter-spacing: -20px;
  line-height: 1;
  color: var(--color-heading);
  margin-bottom: 24px;
}

.error-page__message {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.7px;
  color: #888;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ─── Three asterisks divider ─── */
.three-asterisks {
  text-align: center;
  font-size: 24px;
  letter-spacing: 0.3em;
  margin: 2em 0;
}

/* ─── Section titles ─── */
.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
}

/* ─── Hero sections ─── */
.hero {
  text-align: center;
  padding: 0 0 var(--space-16);
}

.hero__title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 62px;
  font-weight: 700;
  letter-spacing: -3.8px;
  margin-bottom: var(--space-6);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__image {
  margin-top: var(--space-12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 100%;
}

@media (max-width: 809px) {
  .hero {
    padding: var(--space-4) 0 var(--space-8);
  }

  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }
}

@media (min-width: 810px) and (max-width: 1199px) {
  .hero__title {
    font-size: var(--text-5xl);
  }
}

/* ─── Feature detail pages ─── */
.feature-detail {
  padding: var(--space-16) 0;
}

@media (max-width: 809px) {
  .feature-detail {
    padding-top: var(--space-4);
  }
}

.feature-detail__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.feature-detail__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
}

.feature-detail__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.feature-detail__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.feature-detail__image {
  margin: var(--space-12) auto;
  max-width: 900px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ─── Screenshot grid ─── */
.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: var(--space-6) 0 var(--space-8);
}

.screenshot-grid img {
  width: 100%;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.screenshot-grid img:hover {
  opacity: 0.85;
}

/* ─── Screenshot modal ─── */
.screenshot-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: pointer;
}

.screenshot-modal.is-open {
  display: flex;
}

.screenshot-modal img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.feature-detail__body {
  max-width: var(--container-narrow);
  margin: 0 auto;
  font-size: var(--text-lg);
  line-height: 1.8;
}

.feature-detail__body p {
  margin-bottom: 1.5em;
  text-align: justify;
}

.feature-detail__body ul, .feature-detail__body ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.feature-detail__body ul {
  list-style-type: disc;
}

.feature-detail__body ol {
  list-style-type: decimal;
}

.feature-detail__body li {
  margin-bottom: 0.5em;
}

.feature-detail__body img {
  border-radius: var(--radius-md);
  margin: var(--space-8) 0;
}

.feature-detail__body h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.feature-detail__body h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

/* ─── Blog listing ─── */
.blog-listing {
  max-width: 650px;
  margin: 0 auto;
}

@media (max-width: 809px) {
  .blog-listing .page-title {
    margin-bottom: 30px;
  }
}

.blog-list {
  display: grid;
  gap: var(--space-8);
}

.blog-card {
  display: block;
  padding: var(--space-6) 0;
  color: inherit;
  text-decoration: none;
  font-style: normal;
  font-weight: normal;
}

.blog-card__image {
  float: left;
  width: 178px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-right: var(--space-6);
}

.blog-card__text {
  overflow: hidden;
}

.blog-card__date {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.blog-card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.blog-card__excerpt {
  color: var(--color-text-light);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  text-align: justify;
}

.blog-card:hover {
  text-decoration: none;
}

.blog-card:hover .blog-card__title {
  color: var(--color-brand);
}

.blog-card__divider {
  display: none;
  margin: 0.3em 0;
}

@media (max-width: 809px) {
  .blog-card__divider {
    display: block;
  }

  .blog-card__image {
    float: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-right: 0;
    margin-bottom: var(--space-4);
  }
}

/* ─── Blog pagination ─── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-10) 0 var(--space-4);
}

.pagination__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-light);
  text-decoration: none;
}

.pagination__link:hover {
  color: var(--color-brand);
}

.pagination__disabled {
  color: var(--color-border);
  pointer-events: none;
}

.pagination__numbers {
  display: flex;
  gap: var(--space-1);
}

.pagination__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-light);
  text-decoration: none;
}

.pagination__number:hover {
  background: var(--color-bg-muted);
  color: var(--color-heading);
}

.pagination__current {
  background: var(--color-heading);
  color: var(--color-white);
}

.pagination__current:hover {
  background: var(--color-heading);
  color: var(--color-white);
}

/* ─── Blog post ─── */
.blog-post {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-4) 0 var(--space-12);
}

.blog-post__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.blog-post__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.blog-post__author {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.blog-post__date {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.blog-post__title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.blog-post__body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  text-align: justify;
}

.blog-post__body p {
  margin-bottom: 1.5em;
}

.blog-post__body img {
  border-radius: var(--radius-md);
  margin: var(--space-8) 0;
}

.blog-post__body h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.blog-post__body h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.blog-post__body ul, .blog-post__body ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.blog-post__body ul {
  list-style-type: disc;
}

.blog-post__body ol {
  list-style-type: decimal;
}

.blog-post__body li {
  margin-bottom: 0.5em;
}

.blog-post__body blockquote {
  margin: var(--space-8) 0;
  padding: var(--space-4) var(--space-6);
  border-left: 3px solid var(--color-brand);
  background: var(--color-bg-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-text-light);
}

.blog-post__body blockquote p:last-child {
  margin-bottom: 0;
}

/* ─── Features listing ─── */

.features-grid__items {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.feature-card {
  display: flex;
  align-items: flex-start;
}

.feature-card__icon-wrap {
  min-width: 36.5px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 28px;
  font-size: 26px;
  color: var(--color-text-light);
}

.feature-card__title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 17px;
}

.feature-card__title a {
  color: #777;
  font-style: normal;
  text-decoration: none;
}

.feature-card__title a:hover {
  color: #c2081d;
  text-decoration: underline;
}

.feature-card__desc {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--color-text-light);
}

/* ─── About page ─── */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
}

/* ─── Guide page ─── */
.guide-content {
  max-width: 800px;
  margin: 0 auto;
}

.guide-content h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.guide-content p {
  margin-bottom: 1em;
  line-height: 1.7;
  text-align: justify;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: var(--space-8) 0;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.guide-article {
  max-width: 730px;
  margin: 0 auto;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.guide-post {
  padding: var(--space-12) 0;
}

.guide-post__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.guide-post__title {
  font-size: 40px;
  margin-bottom: var(--space-20);
}

.guide-post__body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

.guide-post__body p {
  margin-bottom: 1.5em;
  text-align: justify;
}

.guide-post__body img {
  border-radius: var(--radius-md);
  margin: var(--space-8) 0;
}

.guide-post__body h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.guide-post__body h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.guide-post__body ul, .guide-post__body ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.guide-post__body ul {
  list-style-type: disc;
}

.guide-post__body ol {
  list-style-type: decimal;
}

.guide-post__body li {
  margin-bottom: 0.5em;
}

@media (max-width: 809px) {
  .guide-article {
    margin-top: -30px;
  }

  .guide-post {
    padding-top: var(--space-4);
  }

  .guide-post__header {
    margin-bottom: var(--space-8);
  }

  .guide-post__title {
    margin-bottom: var(--space-8);
  }
}

.guide-back {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  font-style: normal;
  font-weight: normal;
  text-decoration: none;
  margin-bottom: var(--space-4);
}

.guide-back:hover {
  color: var(--color-brand);
  text-decoration: none;
}

.guide-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-list li .fa-circle-check {
  color: #ccc;
  margin-right: 10px;
}

.guide-list li a {
  color: #c2081d;
  font-style: normal;
  font-weight: 600;
  text-decoration: none;
}

.guide-list li a:hover {
  text-decoration: underline;
}

/* ─── Page titles (general pages) ─── */
.page-title {
  font-size: 50px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

@media (max-width: 809px) {
  .page-title {
    font-size: 32px;
  }
}

/* ─── Pricing ─── */
.pricing-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-5);
  margin: 0 auto;
}

@media (max-width: 809px) {
  .pricing-grid {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin-left: calc(-1 * var(--space-6));
    margin-right: calc(-1 * var(--space-6));
    padding: 0;
  }

  .pricing-grid::before,
  .pricing-grid::after {
    content: '';
    flex-shrink: 0;
    width: calc((100vw - 275px) / 2 - var(--space-5));
  }

  .pricing-card {
    scroll-snap-align: center;
    flex-shrink: 0;
  }
}

.pricing-card {
  width: 275px;
  background: #fdfdfd;
  border: 1px solid #ccc;
  border-radius: var(--radius-lg);
  padding: 30px var(--space-5);
  text-align: center;
  position: relative;
}

.pricing-card__badge {
  position: absolute;
  right: -10px;
  top: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: white;
  background: #c2081d;
  padding: 3px 8px;
  border-radius: 3px;
}

.pricing-card--featured {
  border-color: #ccc;
  box-shadow: none;
}

.pricing-card__name {
  font-size: 38px;
  font-family: 'Gill Sans', 'Gill Sans MT', sans-serif;
  font-weight: lighter;
  margin-bottom: var(--space-2);
}

.pricing-card__price {
  font-size: 25px;
  font-family: 'Gill Sans', 'Gill Sans MT', sans-serif;
  font-weight: 400;
  color: var(--color-heading);
  margin: var(--space-2) 0 var(--space-4);
}

.pricing-card__period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.pricing-card__features {
  text-align: left;
  margin-bottom: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-card__features li {
  font-size: 15px;
  font-family: 'Gill Sans', 'Gill Sans MT', sans-serif;
  font-weight: lighter;
  line-height: 19.2px;
}

.pricing-card__features li a {
  color: #111;
  font-style: normal;
  font-weight: lighter;
  text-decoration: none;
}

.pricing-card__features li a:hover {
  color: #c2081d;
  text-decoration: underline;
}

.pricing-card__features li .fa-circle-check {
  color: #ccc;
  margin-right: 10px;
}

.pricing-summary {
  max-width: 600px;
  margin: var(--space-8) auto 0;
  text-align: justify;
}

.pricing-card .btn {
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  margin-top: var(--space-3);
}

/* ─── Download page ─── */
.download-intro {
  text-align: center;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 350px);
  gap: var(--space-5);
  justify-content: center;
  margin-top: var(--space-8);
}

.download-card {
  width: 350px;
  height: 180px;
  border: 1px solid #ccc;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  background: #fdfdfd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.download-card h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 25px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.download-card p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #777;
  margin-bottom: var(--space-4);
}

.download-card .btn {
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
}

@media (max-width: 809px) {
  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    width: 100%;
  }
}

/* ─── Support page ─── */
.support-content {
  max-width: 800px;
  margin: 0 auto;
}

.support-content h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.support-content p {
  margin-bottom: 1em;
  line-height: 1.7;
}

/* ─── Legal pages ─── */
.legal-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 0 var(--space-12);
}

.legal-content h1 {
  margin-bottom: var(--space-8);
}

.legal-content h2 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.legal-content p {
  margin-bottom: 1em;
  line-height: 1.7;
  text-align: justify;
}

.legal-content ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.legal-content li {
  margin-bottom: 0.5em;
}

/* ─── Homepage: hero carousel ─── */
.hero__carousel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-12) auto 0;
}

.hero__carousel {
  position: relative;
  width: 800px;
  overflow: hidden;
}

.hero__track {
  display: flex;
  transition: transform 0.5s ease;
}

.hero__slide {
  min-width: 100%;
  flex-shrink: 0;
}

.hero__slide-img {
  width: 800px;
  height: 428px;
  object-fit: cover;
  display: block;
}

.hero__caption {
  padding: var(--space-4) var(--space-6);
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 20px;
  font-style: italic;
  color: var(--color-text-light);
  background: var(--color-white);
}

.hero__prev,
.hero__next {
  background: rgba(0, 0, 0, 0.08);
  color: var(--color-text-light);
  border: none;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.hero__prev:hover,
.hero__next:hover {
  background: rgba(0, 0, 0, 0.15);
  color: var(--color-heading);
}


@media (min-width: 810px) and (max-width: 1199px) {
  .hero__carousel {
    width: 660px;
  }
  .hero__slide-img {
    width: 660px;
    height: 353px;
  }
}

@media (max-width: 809px) {
  .hero .container {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
  .hero__carousel-wrap {
    gap: var(--space-1);
  }
  .hero__prev,
  .hero__next {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .hero__carousel {
    width: calc(100vw - 96px);
    flex-shrink: 0;
  }
  .hero__slide {
    min-width: calc(100vw - 96px);
  }
  .hero__slide-img {
    width: calc(100vw - 96px);
    height: auto;
    object-fit: contain;
  }
  .hero__caption {
    font-size: var(--text-sm);
  }
}

/* ─── Homepage: features grid ─── */
.features-section {
  background-color: #2a2a2a;
  color: var(--color-white);
  padding: var(--space-16) 0;
  margin-left: -35px;
  margin-right: -35px;
  padding-left: 35px;
  padding-right: 35px;
}

.features-section .section-title {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: lighter;
  letter-spacing: 0.3em;
  text-align: center;
}

.features-grid {
  gap: var(--space-2);
}

.features-grid .card {
  text-decoration: none;
  display: block;
  background: none;
  border: none;
  font-style: normal;
  font-weight: normal;
  box-shadow: none;
}

.features-grid .card:hover {
  background: none;
  box-shadow: none;
  transform: none;
}

.features-grid .card__body {
  padding: var(--space-2);
  display: flex;
  gap: var(--space-5);
}

.features-grid .card__icon {
  font-size: 30px;
  color: var(--color-white);
  flex-shrink: 0;
  width: 30px;
  margin-top: 2px;
}

.features-grid .card__text {
  flex: 1;
}

.features-grid .card__title {
  text-transform: uppercase;
  font-size: 16px;
}

.features-grid .card__title a {
  color: var(--color-white);
  font-style: normal;
  font-weight: 600;
  text-decoration: none;
}

.features-grid .card__title a:hover {
  color: var(--color-brand);
  text-decoration: underline;
}

.features-grid .card__desc {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
}

/* ─── Homepage: FAQ ─── */
.faq__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.faq__item {
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.faq__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq__question {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-heading);
}

.faq__answer {
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ─── Homepage: CTA signup ─── */
.cta-signup {
  padding: var(--space-20) 0;
}

.cta-signup__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-8);
}

@media (max-width: 809px) {
  .cta-signup__title {
    font-size: var(--text-2xl);
  }
}

/* ─── Feature navigation (prev/next) ─── */
.feature-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.feature-nav a {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.feature-nav a:hover {
  color: var(--color-brand);
}
