/* =========================
   Apple-style base system
   ========================= */

:root {
  --bg: #ffffff;
  --text: rgba(0, 0, 0, .88);
  --muted: rgba(0, 0, 0, .56);
  --line: rgba(0, 0, 0, .16);
  --card: #ffffff;
  --soft: rgb(245, 245, 247);
  --shadow: 0 8px 30px rgba(0, 0, 0, .08);

  /*--link: #0077ED;*/
  --link: #2c8cc7;
  --focus: #0071E3;

  --radius: 18px;

  --container: 980px;
  --gutter: 22px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 22px;
  --space-5: 28px;
  --space-6: 40px;
  --space-7: 56px;
  --space-8: 72px;

  --site-header-height: 60px;
  /* 60 adjust to your actual header height */
}

@media (max-width: 768px) {
  :root {
    --site-header-height: 56px;
  }
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

main :target {
  scroll-margin-top: calc(var(--site-header-height) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 833px) {
  .container {
    padding: 0 16px;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}



/* =========================
   Header / Nav
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  height: var(--site-header-height);
}

.nav-shell {
  padding: 10px 0;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

@media (max-width: 833px) {
  .nav-inner {
    padding: 0 16px;
  }
}


.nav {
  position: relative;
}

.nav-toggle {
  display: none;
  border: 0px solid rgba(0, 0, 0, .14);
  background: rgba(255, 255, 255, .8);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}


.nav-panel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 12px;
  color: rgba(0, 0, 0, .72);
  font-size: 14px;
  text-decoration: none;
  width: 100%;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.nav-link:hover {
  text-decoration: none;
  color: rgba(0, 0, 0, .88);
  background: rgba(0, 0, 0, .04);
}

.nav-link.is-active {
  color: rgba(0, 0, 0, .88);
  background: rgba(0, 0, 0, .06);

}

.nav-cta {
  display: flex;
  align-items: center;
}








/* =========================
   Buttons
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  height: 36px;
  font-weight: 400;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--link);
  color: #fff;
  border-color: rgba(0, 0, 0, .08);
  box-shadow: 0 3px 20px rgba(44, 140, 199, 0.4);
}

.btn-primary:hover {
  filter: brightness(0.96);
}

.btn-ghost {
  background: rgba(0, 0, 0, .03);
  color: rgba(0, 0, 0, .88);
  border-color: rgba(0, 0, 0, .10);
  box-shadow: 0 3px 20px rgb(187 187 187 / 20%);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, .05);
}

.link {
  color: var(--link);
  font-weight: 400;
}

/* =========================
   Sections / Layout
   ========================= */
/*Gradient text */

.dd-highlight-text {
  background-image: linear-gradient(108deg, #0079d0 0, #9e52d8 32%, #da365c 84%, #d04901 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /*display: inline-block;*/
}

.section {
  padding: var(--space-8) 0;
}

.section-muted {
  background: var(--soft);
}

.section-head {
  margin-bottom: var(--space-5);
}

.section-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
  text-align: center;
}


.eyebrow {
  margin: 0 0 10px;
  color: rgba(0, 0, 0, .64);
  font-weight: 600;
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 833px) {

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.split {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 833px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================
   Cards
   ========================= */

.card {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
  overflow: hidden;
}

.product-card {
  position: relative;
  /* Context for stretched link */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  /* Lift effect */
}

.card-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f5f5f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 18px;
  flex: 1;
  /* Fill height */
  display: flex;
  flex-direction: column;
}

.card-actions {
  padding: 0 18px 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  /* Above stretched link */
}

/* Stretched Link Pattern */
.card-main-link {
  color: inherit;
  text-decoration: none;
}

.card-main-link:hover {
  text-decoration: none;
}

.card-main-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-kicker {
  font-size: 12px;
  color: rgba(0, 0, 0, .56);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-title {
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.product-desc {
  margin: 0;
  color: rgba(0, 0, 0, .64);
  flex: 1;
}

.soft-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .15);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.soft-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.soft-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.soft-desc {
  margin: 0 0 12px;
  color: rgba(0, 0, 0, .64);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.checklist {
  margin: 0;
  padding-left: 18px;
  color: rgba(0, 0, 0, .64);
}

/* =========================
   Footer (Apple-like)
   ========================= */

.site-footer {
  --footer-bg: rgb(245, 245, 247);
  --footer-border: rgba(0, 0, 0, 0.16);
  --footer-text: rgba(0, 0, 0, 0.56);
  --footer-link: rgba(0, 0, 0, 0.72);
  --footer-title: rgba(0, 0, 0, 0.88);
  --footer-pipe: rgba(0, 0, 0, 0.48);

  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid var(--footer-border);
  font-size: 12px;
  line-height: 1.3333733333;
  letter-spacing: -0.01em;
}

.site-footer a {
  color: var(--footer-link);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #000;
}

.footer-notes {
  border-bottom: 1px solid var(--footer-border);
  padding: 17px 0 11px;
}

.footer-notes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-notes li {
  padding-bottom: .8em;
}

.footer-notes li:last-child {
  padding-bottom: 0;
}

.footer-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 20px 0 28px;
}

.footer-directory>.footer-group:last-child {
  border-bottom: 0px solid;
}

.footer-title {
  margin: 0 0 .8em;
  font-weight: 600;
  color: var(--footer-title);
}

.footer-toggle {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: var(--footer-title);
  font-weight: 600;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0 0 .8em;
}

.footer-links li:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding: 17px 0 11px;
}

.footer-name {
  font-weight: 600;
  color: var(--footer-title);
}

.footer-tagline {
  margin-top: 3px;
  max-width: 70ch;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 10px;
  align-items: center;
}

.footer-love {
  display: flex;
  margin-left: auto;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 5px;
}



.footer-legal-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.footer-legal-links li {
  position: relative;
  padding: 0 9px;
}

.footer-legal-links li:first-child {
  padding-left: 0;
}

.footer-legal-links li::after {
  content: "";
  position: absolute;
  right: 0;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: var(--footer-pipe);
}

.footer-legal-links li:last-child::after {
  display: none;
}

/* Footer accordion on mobile */
@media (max-width: 833px) {
  .footer-directory {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .footer-group {
    border-bottom: 1px solid var(--footer-border);
  }

  .footer-title {
    margin: 0;
    font-weight: 400;
  }

  .footer-toggle {
    padding: 10px 0;
    font-weight: 400;
    cursor: pointer;
    position: relative;
  }

  .footer-toggle .chev {
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
  }

  .footer-links {
    display: none;
    padding: 5px 0 16px;
  }

  .footer-group.is-open .footer-links {
    display: block;
  }

  .footer-group.is-open .footer-toggle .chev {
    transform: translateY(-50%) rotate(-135deg);
  }
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/*Logo Style*/
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(0, 0, 0, .88);
  text-decoration: none;
  font-weight: 600;
}

.brand img {
  height: 26px;
  /* Apple-grade size */
  width: auto;
  /* preserve ratio */
  display: block;
  /* remove inline-gap */
}

.brand {
  padding-top: 2px;
  /* optical alignment */
}

/*Nav Overlay*/
body.is-locked {
  overflow: hidden;
  touch-action: none;
  /* important for mobile */
}

/* Overlay behind nav-panel (opacity only) */
.nav-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--site-header-height);
  bottom: 0;

  /*background: rgba(0,0,0,0.18);*/
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 0;
  pointer-events: none;

  transition: opacity 160ms ease-out;
  z-index: 5;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.burger {
  width: 17px;
  height: 10px;
  display: inline-block;
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 0, 0, .72);
  border-radius: 2px;
  transition: transform 200ms ease, top 200ms ease, opacity 160ms ease;

}

.burger::before {
  top: -3.5px;
}

.burger::after {
  top: 3.5px;
}

/* when nav is open */
.nav-toggle[aria-expanded="true"] .burger {
  background: transparent;
  /* hide middle line */
}

.nav-toggle[aria-expanded="true"] .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

.burger,
.burger::before,
.burger::after {
  transition-timing-function: ease-out;
}

@media (max-width: 833px) {

  .nav {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--site-header-height);
    width: 100%;

    background: rgba(255, 255, 255, .99);

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;

    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow);
    z-index: 2000;

    padding: 12px;

    /* ✅ opacity-only */
    opacity: 0;
    pointer-events: none;

    transition: opacity 180ms ease-out;
    will-change: opacity;
  }


  .nav-panel.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    gap: 6px;
  }

  .nav-link {
    padding: 10px 10px;
  }

  .nav-panel .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   HERO BASE
========================= */
.hero {
  position: relative;
  width: 100%;
  background: rgba(245, 245, 247, 1);
  overflow: hidden;
}

/* =========================
   MEDIA LAYER (RESPONSIVE + NO DISTORTION)
   ✅ Fix: give hero a real height reference on all screens
========================= */
.hero-media {
  position: relative;
  width: 100%;
  /*height: clamp(420px, 52vw, 720px);*/
  aspect-ratio: 16 / 9;
  max-height: 720px;
  /* optional safety cap */
  overflow: hidden;

}

/* Poster + Video share the same exact box */
.hero-bg,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;


  object-fit: cover;
  /* ✅ scales down without distortion */
  object-position: center;
  /* ✅ keep centered crop */

  pointer-events: none;
  /* ✅ never block clicks */
}

/* Optional layering (poster under video) */
.hero-bg {
  z-index: 1;
}

.hero-video {
  z-index: 2;
}

/* =========================
   OVERLAY CONTENT
========================= */
.hero-text {
  position: absolute;
  inset: 0;
  z-index: 5;
  /* ✅ always ABOVE media */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;

  padding-top: 90px;
}

/* =========================
   TYPOGRAPHY
========================= */
.hero-title {
  font-size: clamp(34px, 4.6vw, 40px);
  line-height: 1.30;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  font-weight: 700;
  /* color: #000; */
  background: linear-gradient(135deg, #1d1d1f 30%, #2c8cc7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.55;
  margin: 0 auto 22px;
  color: rgba(0, 0, 0, .72);
}

/* =========================
   ACTION BUTTONS (YOUR ORIGINAL)
========================= */
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 20px;
}

.hero-btn {
  height: 36px;
  /*44*/
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;

  box-shadow: 0 6px 14px rgba(0, 0, 0, .10);
}

/* Primary */
.hero-btn-primary {
  background: #000;
  color: #fff;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  opacity: .92;
}

/* Secondary */
.hero-btn-secondary {
  background: rgba(255, 255, 255, .6);
  color: rgba(0, 0, 0, .88);
  border: 1px solid rgba(0, 0, 0, .08);
}

.hero-btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .8);
}

.spacer {
  height: 5px;
  transition: 160ms ease-out;
}

/* =========================
   MOBILE / TABLET
   ✅ Fix: ONLY adjust container height + overlay padding
   ❌ Removed: padding-top on .hero-video (breaks layout)
========================= */
@media (max-width: 768px) {

  .hero-media {
    /*height: clamp(360px, 80vw, 520px);*/
    aspect-ratio: 16 / 9;
    /* ✅ true 16:9 */
    max-height: 520px;
    /* optional cap */
  }

  .hero-text {
    padding-top: calc(var(--site-header-height, 0px) + 18px);
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title {
    font-size: clamp(22px, 6.5vw, 32px);
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .spacer {
    height: clamp(140px, 12vw, 160px);
  }
}

/* =========================
   SMALL PHONES (<= 420px)
========================= */
@media (max-width: 420px) {
  .hero-text {
    padding-top: calc(var(--site-header-height, 0px) + 12px);
  }

  .spacer {
    height: clamp(140px, 16vw, 170px);
    /* slightly more breathing room on tiny screens */
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* =========================
   LANDSCAPE PHONES / SHORT HEIGHT
   (prevents "everything too tall")
========================= */
@media (max-width: 900px) and (max-height: 520px) {
  .hero-text {
    padding-top: calc(var(--site-header-height, 0px) + 8px);
  }

  .spacer {
    height: 110px;
    /* lock minimum, avoid growing */
  }

  .hero-media {
    /*height: 360px; /* stop it getting too tall in landscape */
    aspect-ratio: 16 / 9;
    max-height: 520px;
  }
}

/* =========================
   TABLETS (769px–1024px)
   (smooth step between mobile and desktop)
========================= */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-text {
    padding-top: 100px;
    /* slightly more than mobile */
  }

  .spacer {
    height: 90px;
    /* tablets usually don't need huge gap */
  }

  .hero-media {
    /*height: clamp(420px, 48vw, 620px);*/
    aspect-ratio: 16 / 9;
    max-height: 620px;
  }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}




/* =========================
   SEARCH & RESOURCES
   ========================= */

.search-section {
  position: relative;
  max-width: 600px;
  margin: 0 auto 40px;
}

.search-input-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  height: 52px;
  /* Apple-grade chunky input */
  padding: 0 20px 0 50px;
  /* space for icon */
  font-size: 17px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 99px;
  /* Pill shape */
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  outline: none;
}

.search-input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 20px;
  right: 20px;
  margin-top: 8px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  /* faint border */
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  z-index: 100;
  overflow: hidden;
  display: none;
  /* hidden by default */
}

.search-suggestions.is-visible {
  display: block;
}

.suggestion-item {
  padding: 12px 16px;
  font-size: 15px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.is-selected {
  background: rgba(0, 0, 0, 0.04);
}

.suggestion-icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

/* Resource Cards (Grid Layout) */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.resource-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.resource-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f5f5f7;
  object-fit: cover;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.resource-thumb.resource-category-art {
  height: auto;
  object-fit: contain;
  padding: 32px;
}

.resource-body {
  padding-top: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.resource-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.resource-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}

.resource-desc {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.64);
  margin: 0 0 32px;
  line-height: 1.4;
  flex: 1;
  /* push button down */
}

.resource-btn {
  margin-top: 20px;
  width: 100%;
}

/* Hidden state for filtering */
.is-hidden {
  display: none !important;
}

/* No results message */
.no-results {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  grid-column: 1 / -1;
  display: none;
}

.no-results.is-visible {
  display: block;
}

/* =========================
   FAQ ACCORDION
   ========================= */
.faq-category {
  text-align: left;
  margin-top: 48px;
  margin-bottom: 16px;
}

.faq-category:first-child {
  margin-top: 0;
}

.faq-category-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--link);
  margin: 0;
}

.faq-accordion {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  border-radius: 16px !important;
  margin-bottom: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-accordion:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.faq-question {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  transition: color 0.2s ease;
}

/* Hide default marker */
.faq-question::-webkit-details-marker {
  display: none;
}

/* Custom triangle */
.faq-question::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid var(--muted);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-accordion[open] .faq-question::before {
  transform: rotate(90deg);
}

.faq-accordion[open] .faq-question {
  font-weight: 600;
}

.faq-answer {
  padding-left: 15px;
  padding-top: 10px;
}

.faq-answer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.64);
}

/* =========================
   TABLES (Version History)
   ========================= */
.version-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}

.version-table th,
.version-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  vertical-align: top;
}

.version-table th {
  background: #f5f5f7;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.version-table tr:last-child td {
  border-bottom: none;
}

/* =========================
   NAV DROPDOWN
   ========================= */
.nav-item-has-children {
  position: relative;
  display: inline-block;
}

.nav-dropdown {
  position: absolute;
  top: calc(var(--site-header-height) - 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  min-width: 180px;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.nav-item-has-children:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Triangle tip */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1;
}

.nav-dropdown li {
  margin-bottom: 2px;
}

.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown a:hover {
  background: #f5f5f7;
  color: #000;
  text-decoration: none;
}

.nav-dropdown a.is-active {
  background: rgba(0, 0, 0, .06);
  color: #000;
  /* font-weight: 500; */
}

/* Mobile Dropdown adjustment */
@media (max-width: 833px) {
  .nav-item-has-children {
    display: block;
    width: 100%;
  }

  .nav-item-has-children:hover .nav-dropdown {
    display: block;
    transform: none;
    /* Override desktop hover transform */
    animation: none;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    /* padding moved to links */
    background: transparent;
    min-width: 0;
    width: 100%;
  }

  .nav-dropdown::before {
    display: none;
  }

  .nav-dropdown li {
    margin-bottom: 4px;
    width: 100%;
  }

  .nav-dropdown a {
    font-size: 14px;
    /* Matched to main nav */
    padding: 10px 10px 10px 26px;
    /* Indent + padding */
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-dropdown a:hover {
    background: rgba(0, 0, 0, .04);
    text-decoration: none;
    transform: none;
  }
}

/* =========================
   VERSION SELECTOR (Custom JS)
   ========================= */
.version-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.version-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  position: relative;
  /* Context for dropdown */
  z-index: 10;
}

.version-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* Custom Dropdown Container */
.custom-select-container {
  flex: 1;
  position: relative;
  min-width: 200px;
}

/* The Trigger Button */
.custom-select-trigger {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  color: var(--text);
  background: #f5f5f7;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-select-trigger:hover {
  background: #e8e8ed;
}

.custom-select-trigger.is-open {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

/* Chevron Icon */
.custom-select-trigger::after {
  content: '';
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 14 8'%3E%3Cpath stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}

.custom-select-trigger.is-open::after {
  transform: rotate(180deg);
}

/* The Options Menu */
.custom-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.custom-options.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.custom-option:hover {
  background: #f5f5f7;
}

.custom-option.selected {
  background: var(--link);
  color: #fff;
}

/* Content Area */
.version-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.version-number {
  font-size: 24px;
  font-weight: 700;
  color: #1d1d1f;
}

.version-date {
  font-size: 15px;
  color: #86868b;
  font-weight: 500;
}

.version-body {
  font-size: 16px;
  line-height: 1.6;
  color: #1d1d1f;
}

.version-body strong {
  display: block;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.version-body ul {
  margin: 0;
  padding-left: 20px;
  color: #424245;
}

.version-body li {
  margin-bottom: 4px;
}

/* ==========================================================================
   MODERN COMPONENTS INJECTION (CAPTCHA, DOWNLOADS, HISTORY, PRICING)
   ========================================================================== */

/* =========================
   CAPTCHA & VERSION CONTROL
   ========================= */

.version-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  position: relative;
  /* Context for dropdown */
  z-index: 10;
}

.version-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* Custom Dropdown Container */
.custom-select-container {
  flex: 1;
  position: relative;
  min-width: 200px;
}

/* The Trigger Button */
.custom-select-trigger {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  color: var(--text);
  background: #f5f5f7;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-select-trigger:hover {
  background: #e8e8ed;
}

.custom-select-trigger.is-open {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

/* Chevron Icon */
.custom-select-trigger::after {
  content: '';
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 14 8'%3E%3Cpath stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}

.custom-select-trigger.is-open::after {
  transform: rotate(180deg);
}

/* The Options Menu */
.custom-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.custom-options.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.custom-option:hover {
  background: #f5f5f7;
}

.custom-option.selected {
  background: var(--link);
  color: #fff;
}

/* Content Area */
.version-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.version-number {
  font-size: 24px;
  font-weight: 700;
  color: #1d1d1f;
}

.version-date {
  font-size: 15px;
  color: #86868b;
  font-weight: 500;
}

.version-body {
  font-size: 16px;
  line-height: 1.6;
  color: #1d1d1f;
}

.version-body strong {
  display: block;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.version-body ul {
  margin: 0;
  padding-left: 20px;
  color: #424245;
}

.version-body li {
  margin-bottom: 4px;
}

/* =========================
   Captcha Overlay
   ========================= */

.captcha-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.captcha-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.captcha-modal {
  background: var(--card);
  width: 90%;
  max-width: 340px;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.captcha-overlay.is-visible .captcha-modal {
  transform: scale(1);
}

.captcha-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.captcha-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.captcha-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
}

.captcha-desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.captcha-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  background: var(--soft);
  padding: 12px;
  border-radius: 12px;
}

#captcha-canvas {
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

.captcha-refresh {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.captcha-refresh:hover {
  background: #f0f0f0;
  color: var(--focus);
}

.captcha-input-group {
  margin-bottom: 12px;
}

.captcha-input {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  font-size: 16px;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.captcha-input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.captcha-error {
  color: #d70015;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}

.captcha-error.is-visible {
  display: block;
}

.captcha-verify-btn {
  width: 100%;
  margin-top: 8px;
  height: 44px;
  font-weight: 500;
}

/* Error Animation */
@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

.input-error {
  animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
  border-color: #d70015 !important;
  box-shadow: 0 0 0 3px rgba(215, 0, 21, 0.2) !important;
}

/* =========================
   MODERN DOWNLOAD CARD
   ========================= */
.modern-download-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  /* Soft premium shadow */
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* Subtle border */
  max-width: 700px;
  margin: 0 auto 60px;
  display: flex;
  align-items: center;
  gap: 24px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-download-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.mdc-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: #f5f5f7;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.mdc-content {
  flex: 1;
}

.mdc-title {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 600;
  color: #1d1d1f;
}

.mdc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #86868b;
}

.mdc-version {
  font-weight: 500;
  color: #424245;
}

.mdc-dot {
  opacity: 0.5;
}

.mdc-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Ensure button overrides specific disabled styles if needed */
.mdc-actions .btn {
  min-width: 140px;
  justify-content: center;
}

.mdc-secure {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #1d1d1f;
  /* Darker for trust */
  font-weight: 500;
  opacity: 0.8;
}

/* Responsive MDC */
@media (max-width: 600px) {
  .modern-download-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 16px;
  }

  .mdc-meta {
    justify-content: center;
  }
}

/* =========================
   MODERN VERSION HISTORY
   ========================= */

/* Update Card */
.version-card {
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0;
  /* Let header/body handle padding */
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}

.version-controls {
  background: #fbfbfd;
  /* Slight distinction */
  padding: 24px 32px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.version-content {
  padding: 32px;
  min-height: 200px;
}

/* Animation */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.version-content.animate-in {
  animation: fadeSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Typography Updates */
.version-header {
  border-bottom: none;
  margin-bottom: 16px;
  padding-bottom: 0;
  align-items: baseline;
}

.version-number {
  font-size: 28px;
  letter-spacing: -0.01em;
}

.version-section {
  margin-bottom: 24px;
}

.version-section:last-child {
  margin-bottom: 0;
}

.version-section strong {
  display: block;
  font-size: 15px;
  color: #1d1d1f;
  margin-bottom: 8px;
  font-weight: 600;
}

.version-body ul {
  padding-left: 0;
  list-style: none;
}

.version-body li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  color: #424245;
  font-size: 15px;
  line-height: 1.5;
}

/* Custom Bullet */
.version-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  /* align with first line text */
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d2d2d7;
}

/* =========================
   PREMIUM REDESIGN STYLES
   ========================= */

/* --- Pricing Premium --- */
.pricing-grid {
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card .soft-title {
  font-size: 24px;
  margin-bottom: 8px;
}

.pricing-card .product-kicker {
  font-size: 14px;
  font-weight: 600;
  color: #86868b;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card .checklist {
  margin-bottom: 32px;
  width: 100%;
}

.pricing-card .btn.full-width {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* Pro / Popular Card */
.pricing-card.pro {
  border-color: rgba(0, 113, 227, 0.3);
  background: linear-gradient(to bottom, #fbfbfd 0%, #fff 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  /* Default stronger shadow */
  overflow: visible;
}

.pricing-card.pro:hover {
  box-shadow: 0 30px 60px rgba(0, 113, 227, 0.12);
  /* Blue glow hint on hover */
}

.badge-popular {
  position: absolute;
  top: -15px;
  /* Slight lift to avoid clipping */
  left: 50%;
  transform: translateX(-50%);
  background: var(--link);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(44, 140, 199, 0.3);
  z-index: 5;
}

.badge-flagship {
  background: var(--link);
  /* Match Primary Color */
  box-shadow: 0 4px 12px rgba(44, 140, 199, 0.3);
  /* Adjusted shadow */
}

.badge-free {
  background: #34c759;
  /* Green */
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

/* --- Resource Cards (Modern) --- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
}

.resource-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  /* Light border */
  border-radius: 18px;
  /* Consistent radius */
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 113, 227, 0.2);
  /* Subtle blue hint */
  text-decoration: none;
}

.resource-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

.icon-dynamo {
  background: rgba(255, 59, 48, 0.1);
  color: #FF3B30;
}

.icon-gh {
  background: rgba(52, 199, 89, 0.1);
  color: #34C759;
}

.icon-support {
  background: rgba(0, 113, 227, 0.1);
  color: #0071E3;
}

.resource-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #1d1d1f;
}

.resource-desc {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.64);
  line-height: 1.5;
  margin-bottom: 0;
}

.resource-link {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--link);
}

/* =========================
   MODERN INFO CARDS (Team/Contact)
   ========================= */
.modern-info-card {
  min-width: 0;
  background: #fff;
  border-radius: 28px;
  padding: 48px 40px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  height: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.modern-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px -12px rgba(0, 0, 0, 0.15);
}

/* Subgrid: align icon / title / description rows across cards in a 3-col grid */
.grid-3>.modern-info-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  justify-items: center;
}

.mic-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f5f5f7 0%, #ebebf0 100%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mic-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}

.mic-desc {
  font-size: 17px;
  color: #86868b;
  line-height: 1.5;
  margin: 0 0 32px;
  max-width: 400px;
}

.mic-link {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-weight: 600;
  color: #fff;
  background: var(--link);
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 99px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(44, 140, 199, 0.3);
  text-decoration: none;
}

.mic-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(44, 140, 199, 0.4);
  background: #237ab5;
  /* slightly darker on hover */
  color: #fff;
  text-decoration: none;
}



/* =========================
   EASYNAVIS PRO PREMIUM STYLES (Restored)
   ========================= */
.hero-premium {
  background-color: #fff;
  background-image: radial-gradient(at 0% 0%, rgba(44, 140, 199, 0.08) 0px, transparent 50%), radial-gradient(at 100% 0%, rgba(0, 113, 227, 0.05) 0px, transparent 50%);
  padding-bottom: 80px;
  position: relative;
  overflow: visible;
  text-align: center;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.hero-title-premium {
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1.10;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #1d1d1f;
  margin: 16px 0 24px;
  background: linear-gradient(135deg, #1d1d1f 30%, #2c8cc7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.1em;
}

.premium-media {
  margin-top: 100px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.2), 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  aspect-ratio: 16 / 9;
}

/* Poster image (shows first) */
.premium-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Video fades in over the poster */
.premium-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: premiumFadeIn 1.2s ease 0.5s forwards;
  pointer-events: none;
}

@keyframes premiumFadeIn {
  to {
    opacity: 1;
  }
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 50%;
  background: radial-gradient(circle at 50% 50%, #0071E3 0%, rgba(0, 113, 227, 0) 70%);
  filter: blur(40px);
  z-index: 0;
  opacity: 0.5;
}



/* =========================
   UTILITIES & BUTTONS
   ========================= */
.text-center {
  text-align: center;
}

.btn-secondary {
  background: rgba(0, 113, 227, 0.1);
  color: var(--link);
  font-weight: 500;
}

.btn-secondary:hover {
  background: rgba(0, 113, 227, 0.2);
}

/* VS Code Mobile Fix */
@media (max-width: 600px) {
  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-premium {
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* Centering Alignment Fixes */
.section-subtitle {
  margin: 0 auto;
}

.hero-title-premium {
  margin: 16px auto 24px;
}



/* =========================
   FROSTED HERO BUTTONS
   ========================= */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-btn-primary {
  background: rgba(5, 5, 5, 1.0);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-btn-primary:hover {
  background: rgba(5, 5, 5, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.65);
  color: #1d1d1f;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* =========================
   TOAST NOTIFICATION
   ========================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}



/* =========================
   PRODUCTS PAGE LAYOUT
   ========================= */
.section-full-height {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  /* justify-content: center; removed per request for top alignment */
}

@media (max-width: 768px) {
  .section-full-height {
    padding-top: 80px;
    padding-bottom: 40px;
    min-height: auto;
    /* Allow scrolling on small screens if content is long */
  }
}

/* =========================
   Mobile Alert (Apple Style)
   ========================= */
.mobile-alert {
  position: fixed;
  bottom: -120px;
  left: 20px;
  right: 20px;
  max-width: 420px;
  margin: 0 auto;
  /* Center on larger screens if visible */
  background: rgba(0, 0, 0, 0.35);
  /* Dark translucent */
  color: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  transition: bottom 0.6s cubic-bezier(0.32, 0.72, 0, 1);
  /* iOS spring-ish ease */
  padding: 18px 22px;
  text-align: center;
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  /* Rounded pill shape */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.mobile-alert.show {
  bottom: 24px;
  /* Floating off bottom */
}

/* On very small screens, keep it floating but closer to edges */
@media (max-width: 360px) {
  .mobile-alert {
    left: 12px;
    right: 12px;
    bottom: -120px;
    border-radius: 24px;
    padding: 16px;
    font-size: 14px;
  }

  .mobile-alert.show {
    bottom: 12px;
  }
}

.mobile-alert .close-btn {
  background: var(--link);
  /* Translucent Blue */
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(44, 140, 199, 0.3);
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mobile-alert .close-btn:hover {
  background: var(--link);
}



.mobile-alert .close-btn:active {
  filter: brightness(0.9);
  transform: scale(0.96);
}


/* =========================
   CONTACT SPLIT LAYOUT
   ========================= */
.contact-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

/* Ensure card fills height */
.contact-card-col .modern-info-card {
  height: 100%;
  max-width: none;
  /* Let grid control width */
}

@media (max-width: 834px) {
  .contact-split-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* =========================
   VIDEO MODAL
   ========================= */

/* Based on .captcha-overlay but adapted */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  /* Higher than captcha */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.video-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.video-overlay[hidden] {
  display: none;
}

body.has-video-modal {
  overflow: hidden;
}

.video-modal {
  background: #000;
  width: 90%;
  max-width: 900px;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 40px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

.video-overlay.is-visible .video-modal {
  transform: scale(1);
}

/* Close button - floating outside or top-right inside */
.video-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.video-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Aspect Ratio Container */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  /* 16:9 */
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-external {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
}

.video-preview-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.video-external a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .video-modal {
    padding: 56px 16px 20px;
  }
}

/* Resource and support requests */
body.has-request-dialog {
  overflow: hidden;
}

.request-dialog {
  width: min(580px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 36px;
  border: 1px solid rgba(21, 39, 67, .1);
  border-radius: 24px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 80px rgba(21, 39, 67, .24);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.request-dialog::backdrop {
  background: rgba(21, 39, 67, .48);
  backdrop-filter: blur(5px);
}

.request-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: #152743;
  cursor: pointer;
}

.request-close:hover {
  background: #e9eef4;
}

.request-kicker {
  margin: 0 36px 10px 0;
  color: #257aad;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.request-heading h2 {
  margin: 0 0 10px;
  color: #152743;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.6px;
}

.request-heading > p:last-child {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.request-form {
  display: grid;
  gap: 18px;
}

.request-form[hidden],
.request-success[hidden],
.request-optional[hidden] {
  display: none;
}

.request-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.request-fields {
  display: grid;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.request-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.request-verification:empty {
  display: none;
}

.request-progress.is-error {
  color: #a82c34;
}

.request-field {
  min-width: 0;
}

.request-field label {
  display: block;
  margin: 0 0 8px;
  color: #152743;
  font-size: 13px;
  font-weight: 600;
}

.request-optional {
  color: var(--muted);
  font-weight: 400;
}

.request-field input,
.request-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #cdd6df;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}

.request-field textarea {
  resize: vertical;
}

.request-field input[readonly] {
  background: #f5f7fa;
  color: #425469;
}

.request-field input:focus,
.request-field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: transparent;
}

.request-note,
.request-progress {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.request-progress a {
  color: #257aad;
  text-decoration: underline;
}

.request-progress:empty {
  display: none;
}

.request-submit {
  width: 100%;
  min-height: 46px;
}

.request-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.request-success-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e8f5ef;
  color: #25805b;
}

.request-success p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.support-request-button {
  margin-bottom: 20px;
}

@media (max-width: 520px) {
  .request-dialog {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .request-heading h2 {
    font-size: 25px;
  }

  .request-fields-row {
    grid-template-columns: 1fr;
  }
}
