/* ImgDownloadPro – black & white sleek theme
   Accent: oklch(21% 0.034 264.665) */

/* Site header: no transform/filter on .site-header so children stay viewport-fixed */
.site-header {
  display: block;
}

/* Icon + H2: column stack keeps icon and title visually grouped and centered */
.section-heading-lockup {
  text-align: center;
}
:root {
  --accent: oklch(21% 0.034 264.665);
  --accent-light: oklch(97% 0.005 264);
}

/* Override orange and colored accents site-wide */
.bg-orange-500,
.bg-orange-600,
.bg-linear-to-tl.from-orange-600.to-orange-500,
.bg-violet-500 {
  background-color: var(--accent) !important;
}

.text-orange-500,
.text-orange-600 {
  color: var(--accent) !important;
}

.border-orange-200 {
  border-color: oklch(90% 0.01 264) !important;
}

.bg-orange-50,
.bg-orange-100,
.bg-linear-to-t.from-orange-50.to-orange-100 {
  background-color: var(--accent-light) !important;
}

.fill-orange-500,
.stroke-orange-500 {
  fill: var(--accent) !important;
  stroke: var(--accent) !important;
}

/* Feature cards – neutral backgrounds */
.bg-orange-100,
.bg-green-100,
.bg-indigo-100,
.bg-pink-100,
.bg-lime-100 {
  background-color: oklch(96% 0.006 264) !important;
}

.bg-green-500,
.bg-indigo-500,
.bg-pink-500,
.bg-lime-500 {
  background-color: var(--accent) !important;
}

/* Give a review button – hover: black bg, white text */
#chrome-store-review-link {
  background-color: #fff;
  color: #111;
  border: 1px solid #d4d4d8;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
#chrome-store-review-link:hover {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}

/* Buy Me a Coffee button – default: black bg, white text; hover: white bg, black text */
#buymecoffee-btn {
  background-color: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
#buymecoffee-btn:hover,
#buymecoffee-btn:focus {
  background-color: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
}

/* Hero CTA buttons – icon and text on one line */
.hero-cta-link {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}
.hero-cta-link span {
  white-space: nowrap;
}

/* FAQ accordion – pointer cursor on question headers */
details summary {
  cursor: pointer;
}

/* Reserve space for fixed header so content is never hidden under the nav.
   Nav height ≈ logo 40px + py-4 (32px) + border = ~72–80px. 5.5rem = 88px. */
.main-below-fixed-nav {
  padding-top: 5.5rem;
}

/* Homepage hero: content starts below fixed menubar; minimal top padding on desktop */
.hero-below-nav {
  padding-top: 4.5rem;
  min-height: 82vh;
  box-sizing: border-box;
}
.hero-below-nav > .max-w-7xl {
  min-height: calc(82vh - 4.5rem);
  padding-top: 0;
  padding-bottom: 2rem;
  justify-content: center;
}
@media (max-width: 767px) {
  .hero-below-nav {
    padding-top: 6rem;
    min-height: auto;
  }
  .hero-below-nav > .max-w-7xl {
    min-height: min(calc(100vh - 6rem), 800px);
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
}
/* Very narrow phones: keep hero in normal flow so the social pill never sits under the fixed nav */
@media (max-width: 370px) {
  .hero-below-nav {
    padding-top: 6.75rem;
  }
  .hero-below-nav > .max-w-7xl {
    min-height: 0;
    justify-content: flex-start;
    padding-top: 0.25rem;
    padding-bottom: 2.5rem;
  }
}

/* Hero CTAs: allow label wrap on tiny screens (theme above forces nowrap) */
@media (max-width: 370px) {
  .hero-cta-link {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }
  .hero-cta-link span {
    white-space: normal !important;
    text-align: center;
    line-height: 1.25;
  }
}

/* Feature strip store buttons */
@media (max-width: 370px) {
  .cta-store-btn {
    white-space: normal;
    text-align: center;
  }
}

/* FAQ: question title wraps next to chevron; answer uses full card width */
@media (max-width: 370px) {
  details.group summary h3 {
    min-width: 0;
    flex: 1 1 0%;
    padding-right: 0.5rem;
    line-height: 1.35;
  }
  details.group summary svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
  }
  details.group > p {
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

/* Inner-page article: readable width + spacing between breadcrumb, title, intro */
.main-below-fixed-nav article {
  max-width: 48rem;
}
/* Spacing on all inner pages (with or without article): breadcrumb, h1, first paragraph */
.main-below-fixed-nav nav[aria-label="Breadcrumb"] {
  margin-bottom: 2rem;
}
.main-below-fixed-nav h1 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.main-below-fixed-nav h1 + p {
  margin-bottom: 2.5rem;
}
.main-below-fixed-nav article nav[aria-label="Breadcrumb"] {
  margin-bottom: 2rem;
}
.main-below-fixed-nav article h1 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.main-below-fixed-nav article h1 + p {
  margin-bottom: 2.5rem;
}

/* CTA store buttons: icon and text on same line (Chrome / Firefox) */
.cta-store-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

/* Footer: brand left, PAGES center, SOCIAL right; content left-aligned inside each */
.site-footer {
  margin-top: 0;
}
/* Desktop: 3-column grid – brand (auto) | middle area (1fr) | right area (auto). PAGES block centered, SOCIAL block at right. */
.site-footer .footer-inner {
  display: grid !important;
  grid-template-columns: minmax(0, auto) 1fr minmax(0, auto);
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
  align-items: start;
}
/* PAGES container: centered in the middle column (content inside stays left-aligned) */
.site-footer .footer-pages {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 1rem;
  padding-right: 1rem;
  min-width: 0;
}
/* SOCIAL container: aligned to right edge of footer (content inside stays left-aligned) */
.site-footer .footer-social {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 1rem;
  padding-right: 0;
  min-width: 0;
}
.site-footer .footer-pages p,
.site-footer .footer-social > p {
  text-align: left;
}
.site-footer .footer-pages a,
.site-footer .footer-social a {
  text-align: left;
}
.site-footer .border-x.border-gray-200 .max-w-80 {
  max-width: 100%;
  justify-self: start;
}
@media (max-width: 767px) {
  .site-footer .footer-inner {
    display: flex !important;
    flex-direction: column;
  }
  .site-footer .footer-pages,
  .site-footer .footer-social {
    justify-self: unset;
  }
}

/* Consistent spacing between main content and footer (and before CTA blocks) */
.main-below-fixed-nav > section {
  padding-bottom: 2rem;
}
.main-below-fixed-nav .rounded-xl.bg-orange-500 {
  margin-top: 1rem;
}

/* Home: promotional banner carousel (below hero)
   Viewport matches actual assets (1024×640 → 16:10); 16:9 was too short and caused side bars with object-fit: contain */
.home-banner-carousel .carousel-viewport {
  aspect-ratio: 16 / 10;
}
.home-banner-carousel .carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.home-banner-carousel .carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}
.home-banner-carousel .carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.home-banner-carousel .carousel-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.home-banner-carousel .carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: #d4d4d8;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.home-banner-carousel .carousel-dot:hover,
.home-banner-carousel .carousel-dot:focus-visible {
  background: #a1a1aa;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.home-banner-carousel .carousel-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}
@media (prefers-reduced-motion: reduce) {
  .home-banner-carousel .carousel-slide {
    transition: none;
  }
  .home-banner-carousel .carousel-dot {
    transition: none;
  }
}

/* Learn more section only: pill link buttons (footer PAGES stay plain text) */
a.resource-pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-wrap: balance;
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.35;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid #d4d4d8;
  background-color: #fff;
  color: #18181b;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
  max-width: 100%;
  min-height: 2.75rem;
  box-sizing: border-box;
  text-decoration: none;
}
a.resource-pill-link:hover {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
}
a.resource-pill-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (min-width: 640px) {
  a.resource-pill-link {
    font-size: 0.875rem;
    padding: 0.625rem 1.125rem;
  }
}
